Jump to content
Sign in to follow this  

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

Recommended Posts

I have finished a couple tools and I want to save them in a manner that will prevent meddling. Does anyone know a simple method to Lock or Encrypt scripts? I cannot find it in the developer reference. Thanks!


Share this post

Link to post

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:


Caps Lock+Shift+Option+Command



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.


Share this post

Link to post

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! :)


Share this post

Link to post

After following the method above, I get "Settings file could not be read".

It's looking for an XML. What is that XML for?

Share this post

Link to post

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.

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.

Sign in to follow this  


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...