Search the Community
Showing results for tags 'batch rename'.
So regularly, I need to duplicate a series of classes (and their objects!), but I need to change a name in the string - in this example "OG" I want to name "V2" when duplicated: Instead of Projector-OG-01-Beam 2, Mount 2, etc, I would like it to duplicate and do this: My work around to do this is to use Batch Rename. Uncheck every class. Filter it, check the classes I want to edit, and change the string item "OG" to "V2": And then remove the " 2": In other programs this would be a string substitution on duplication and would be one step not many steps as the workaround above indicates. Now if only there was a way to do this as well as duplicate the objects into their new classes! Right now I do this class duplication nonsense and then one by one I copy each object, paste it, and put it into the new class. Woof! 🐶 Here's someone else asking for it, wondering if it's happened since then: Here too:
Here's a behaviour you'll want to look out for if you're going to use the Batch Rename feature when you're working with Workgroup Referenced (WGR) files using the Layout Import method. When you rename a Class in your original file (and then update your WGR file) that Class will be added to the WGR file, not updated. So you end up with two Classes in your WGR file, rather than a single updated Class. This results in any objects associated with that Class being effectively switched off in any existing Viewports you have in the WGR file. This is particularly apparent if using the Batch Rename feature to rename all Classes, as it results in Viewports going blank. The way around this is to Batch Rename the Classes in the WGR file first. You have to rename the Classes in both files and you have to do the WGR first.