Jump to content
Developer Wiki and Function Reference Links ×

How do I ?Lock? mu custom PIO to make it uneditable


Recommended Posts

The short answer is to look in the VS Language guide, which is part of the help app:

To encrypt a plug-in:

1.Select Tools > Scripts > VectorScript Plug-in Editor. In the VectorScript Plug-in Editor, select the plug-in to be protected from the editor list.

2.Use the following key combination, pressing the keys simultaneously:

Macintosh

Caps Lock+Shift+Option+Command

Windows

Shift+Ctrl+Alt

3.Click the Script button in the Editor. Confirm twice that the plug-in should be protected.

One large thing to note -- encryption cannot be reversed, so make sure to duplicate your plug-in before you encrypt.

If you use include files for your code, files with the .px extension will be pulled in to your plug-in while files with the .vss extension wil still be needed if you copy the plug-in to another installation.

My personal workflow takes advantage of the batchencryption library that's included in the SDK. It allows you to write a VS that encrypts plug-ins, and you can point to a plug-in that is outside of your plug-ins folder (eg a duplicate copy). I've developed an Automator script to handle the whole thing and guarantee I'm never accidentally locking an original copy. Some day I'll have time to share the process.

-Josh

Link to comment

Thank you, that is excellent. Just tested, it works exactly as you describe.

(Honestly, I searched the Language Guide repeatedly, I clearly missed these instructions. I did find EncryptVSPluginFilePath as you mention http://developer.vectorworks.net/index.php?title=VCOM:VectorWorks:ISDK::EncryptVSPluginFilePath and was on the verge of attempting that process. I really appreciate you lending a different set of eyes to guide me along!)

PS. looking forward to that automator workflow! :)

?

Link to comment
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...