CS1 Posted February 13, 2008 Share Posted February 13, 2008 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? Quote Link to comment
Gerrit Posted February 14, 2008 Share Posted February 14, 2008 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. Quote Link to comment
Guest Wes Gardner Posted February 14, 2008 Share Posted February 14, 2008 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 Quote Link to comment
eas Posted February 15, 2008 Share Posted February 15, 2008 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? Quote Link to comment
Gerrit Posted February 16, 2008 Share Posted February 16, 2008 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. Quote Link to comment
Recommended Posts
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.