Hippocode Posted May 14, 2012 Share Posted May 14, 2012 (edited) Hey, I'm using a script to number certain symbols (A1,A2,A3). This is done by adding the right name in a popup which will be assigned to the selected symbol(s). It would be nice to show the previous name + 1 as default in the popup for the next symbols.... I havn't found a way to alter the default value in the same script. The best way around that I know would be to make a custom special symbol just to hold the name in a Rfield and retrieve/change it each time ? XML also looks like an option, but I'd need to reset it for each new drawing.. Edited May 14, 2012 by hippothamus Quote Link to comment
Vectorworks, Inc Employee klinzey Posted May 14, 2012 Vectorworks, Inc Employee Share Posted May 14, 2012 If it's just a document script you can use GetSavedSetting/SetSavedSetting to store the values. This will save the values per machine. You could also manually create a record and save the values to the record. If you make it a menu command, then the menu command can have parameters and you can store the values in the default record for the command. This will let you save the values on a document by document basis. Quote Link to comment
Hippocode Posted May 15, 2012 Author Share Posted May 15, 2012 If you make it a menu command, then the menu command can have parameters and you can store the values in the default record for the command. This will let you save the values on a document by document basis. That works perfect. Though I did have problems retrieving the values at first, the script didn't recognize the field values as integers(parameter setup) but as text instead. str2Num etc saved me 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.