Jump to content
Sign in to follow this  
CS1

Scripts available to all files

Recommended Posts

When I create a SCRIPT it is only available in the job file that I created it in.

Is there away to create a SCRIPT and have it available in all the jobs I work on, similar to how WORKSPACES are?

Share this post


Link to post

At least two ways I can think of :

1?

Launch a simple word processor, write your code and save it as an unformatted text file (in MS Word, this would be "Text Only"). In VW, go to Organize > VectorScript PlugIn > Run? and find your code.

Note : you could create a folder that contains all of your scripts and have it ready on a confortable position.

2?

In VW, go to Organize > VectorScript PlugIn > Create, and click New (type = Command) in the dialog window. This opens the VectorScript Editor, where you can write your code. Aside from giving your command a name, you can also categorize it (click Category and name it something personal).

Next, open the Workspace Editor and set it to menu's. In the left column, you'll find a folder named after your category. Open it to reveal your command - which now you can drag and drop onto the menu structure in the right column.

My English idioms may be somewhat wrong since I'm in the Dutch version here - so I'm sorry for any confusion.

Share this post


Link to post

You can "grab" a script from one file and import it to another by going to the Resource Browser, finding the VectorScript Palette (folder) double click to open and that's where your scripts are stored for that file, in your new file use the Import function to tranfer your script to the new file

Share this post


Link to post

But you still have to "load" the script to each file right? Can scripts be included in templates and thereby in all files created by the template?

Share this post


Link to post

Create a new resource, a VectorScript. The first time you perform this in a (template) file, VW will pop up a dialog to create a folder, next one to name the script, and finally a VectorScript Editor window.

You'll find this scripts folder in the Resource palette, but also as a floating palette on your drawing, and finally as an item in the Window menu.

Double-click your script in the floating palette to trigger the action.

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.

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.

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...