Message 1 of 2
How do you retrieve a sketch symbol from a drawing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm having trouble finding how to delete a leftover sketch symbol (It's on the sheet) after replacing a titleblock. I tried searching the API manual, but I can't find how to select an object or how to determine the object type
Nevermind I figured it out
here is the code for those curious
' Deletes Logo Sketch Symbol Dim oDrawDoc As DrawingDocument = ThisApplication.ActiveDocument 'Loop through sheets For Each oSheet In oDrawDoc.Sheets 'Loop through each symbol For Each oSymbol In oSheet.SketchedSymbols 'look for the symbol by name If oSymbol.Name = "LOGO" Then oSymbol.Delete End If Next Next