Message 1 of 3

Not applicable
08-11-2021
03:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
So I am trying to make a code where if there is multiple drawings open, the code will start with the left 'tab' drawing, locate a specific symbol, remove it, move to the next drawing, remove it and so on until all symbols have been removed. The pages dont even have to shift, as long as it batch removes that specific symbol from all open drawings on Inventor, I am happy. I am really new to coding so sorry if it doesnt make sense or is really easy to do.
This is what I have written so far:
For Each doc As Document In ThisApplication.Documents.VisibleDocuments For Each oSymbol In oDrawDoc.VisibleDocuments.SketchedSymbols 'look for the symbol by name If oSymbol.Name = "WARNING" Then oSymbol.Delete End If
Next
Solved! Go to Solution.