Specifying the Plug-in Script

The script source code for the command, tool, or object can be created using the Script Editor or a third-party text editor and imported into the plug-in. The source code is saved as part of the plug-in item. Either Python or VectorScript can be used for the code. For third-party or built-in plug-ins, only unencrypted plug-in scripts can be edited.

To create script code:

1. Click the Script button from the Plug-in Manager dialog box.

Enter the script source code in the Script Editor window. See Creating Scripts for more information. For detailed developer-oriented documentation, please navigate to http://developer.vectorworks.net

tool_script.png 

2. Click OK to save the script as part of the plug-in.

During plug-in development, scripts can be easily compiled and tested when developer mode is enabled in the Session tab of Vectorworks preferences.

~~~~~~~~~~~~~~~~~~~~~~~~~

Specifying the Plug-in Definition

Scripted Plug-ins

 

www.vectorworks.net