VS:Installing Thirdparty into Vectorworks Workspace

From Vectorworks Developer
Revision as of 11:16, 30 January 2020 by Root (Talk | contribs)

Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

What's that

Script developers area able to create installation scripts of their menus and tools. These installation scripts will use API to allow menu and tool insertion into the current workspace. The location will be predetermined and the user will not be able to change it.

Menu Commands

New menu commands will be installed under Tools -> Third-party menu popup inside popup with the name of the company name. The user can add menus in the company menu, or specify menu popup structure under it. The company name and the menu path will be expected as parameters of the API.

An example of third-party menus installed under company name 'vstanev':

InstallTP Menu.jpg

Here is the code of the example menu commands displayed on figure above:


Note: The parameter with the menu command name can contain /-delimited path to place the menu command inside popup. E.g. 'SubMenu/VS_Linear Calc'

Note: The Third-party menu command will not be available until at least one menu is registered there.


New tools will be installed inside Third-party palette. The company name will be used to create tool sets.

Example third-party tool set:

InstallTP Tool.jpg


  Define a block for current workspace edit.
  The corresponding wsEditAdd* functions can be used inside this block.
  The workspace edit begin function specifies the company name that will be used to label all third-party menus and tools added in this block.
  The workspace edit end function will offer restart of Vectorworks (TRUE) or reload of the workspace (FALSE). Note, the user must organize alert dialog to notify the user. The return value is whether the workspace has been modified.
PROCEDURE wsEditBegin(companyName : STRING);
FUNCTION  wsEditEnd(restart : BOOLEAN);

  Add a new menu command.
  'menuPath' specifies the universal menu name. It can also contain a /-delimited string with menu popup names, ending with the universal menu name.
PROCEDURE wsEditAddMenu(menuPath : STRING) : BOOLEAN;

  Add a new tool to the third-party palette.
  'insideToolName' can be used to insert the new tool behind an existing tool.

PROCEDURE wsEditAddTool(toolName : STRING) : BOOLEAN;
PROCEDURE wsEditAddTool2(toolName, insideToolName : STRING) : BOOLEAN;

See also

VS:wsEditBegin | VS:wsEditEnd | VS:wsEditAddMenu | VS:wsEditAddTool | VS:wsEditAddTool2

Practical with: VS:Implementing Installation Script

Personal tools

Advanced Search
See Also