- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @Jakob_Hamburg. Yes, we should be able to rename individual SketchedSymbolDefinition objects, which are directly obtained from the DrawingDocument.SketchedSymbolDefinitions property, which returns the SketchedSymbolDefinitions collection object. Those are what we see in the drawing resources folder. Then there are the individual SketchedSymbol objects, which are the individual 'placed instances' that are created from those definitions, and placed onto the sheets. These are different objects than their definitions.
SketchedSymbolDefinition.Name (a Read/Write property with a String type value)
Sheet.SketchedSymbols is a property of each Sheet object, representing the SketchedSymbols collection of them that have been placed on that specific Sheet, if any. These are not the main definitions, but just 'placed instances' created from the main definition.
SketchedSymbol.Name (a Read/Write property with a String type value)
Just don't try to change the name of a definition that is currently being used by some existing placed instances which were created based upon that definition. When there are placed instances referring to a definition, then you may have to delete all of those placed instances on all sheets first, before it will let you rename the definition that they were based on. Plus, it most likely will not allow you to have two definitions with the same exact name, in the same drawing document. But, you can replace an existing definition in your current drawing with one from the definitions template / library, with the same name. Because the new one will be replacing the existing one, there will never be to of them in that drawing with the same name.
Wesley Crihfield
(Not an Autodesk Employee)