tca Posted January 17, 2019 Share Posted January 17, 2019 (edited) Hi, Does anyone have a script that allows me to change the name of multiple resources (symbols, walls styles, hatches etc.) at once? Preferably a search and replace kind of thing that works for all types of resources. Alternatively something that does this for one type of resource at a time. I have found similar scripts for renaming or pre/suffixing class names... thanks in advance. Edited January 18, 2019 by tca Quote Link to comment
Marionette Maven Marissa Farrell Posted January 17, 2019 Marionette Maven Share Posted January 17, 2019 Here's a Marionette script that will allow you to batch rename resources using find and replace. Be aware that this also will query hidden records in your file, so be wary about that. (If you want to filter records out, they are type 47.) You can further filter the list using the "Get Type" node to narrow down to Symbols, Gradients, Hatches, etc. A list of object types can be found here: http://developer.vectorworks.net/index.php/VS:Function_Reference_Appendix#objects This action should be undoable, but it's always recommended to use a copy of your file for testing since this is a destructive command. My advice would be to move the objects you plan to rename into their own Vectorworks file that you can later save as a resource library file. MarionetteRenameResources_MFarrell.vwx 1 Quote Link to comment
tca Posted January 18, 2019 Author Share Posted January 18, 2019 Hi Marissa, Thanks for the help, works great! Still being a Marionette noob I was wondering where I would have to insert the "Get Type" node in order to allow me to select a certain type of resource to be renamed? Preferably with a drop down list in the oip. I already got the old and new strings to display there.. Quote Link to comment
Vectorworks, Inc Employee Hugues Posted February 22, 2019 Vectorworks, Inc Employee Share Posted February 22, 2019 On 1/17/2019 at 8:03 AM, tca said: Hi, Does anyone have a script that allows me to change the name of multiple resources (symbols, walls styles, hatches etc.) at once? Preferably a search and replace kind of thing that works for all types of resources. Alternatively something that does this for one type of resource at a time. I have found similar scripts for renaming or pre/suffixing class names... thanks in advance. @tca Could you please describe with some examples the types of rename or search/replace operations you are doing? Quote Link to comment
tca Posted February 25, 2019 Author Share Posted February 25, 2019 We organize our libraries in the same system (SfB) as our classes (and other construction documents). To keep things organized after importing standard library resources or resources from other files/parties we have to rename them. I was making some changes to the classification system so I needed to change a lot of resource names.. Quote Link to comment
Vectorworks, Inc Employee Hugues Posted February 25, 2019 Vectorworks, Inc Employee Share Posted February 25, 2019 What do you typically do when you rename them? Add a prefix? a suffix? Anything else? Quote Link to comment
tca Posted February 25, 2019 Author Share Posted February 25, 2019 prefix, suffix or search a particular string and replace it... 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.