Is there a quick easy way to delete a user defined drawing symbol from all sheets of an IDW at one time? Without having to open each page?
Chris Benner
Inventor Tube & Pipe, Vault Professional
Cad Tips Tricks & Workarounds | Twitter | LinkedIn
Autodesk University Classes:
Going With The Flow with Inventor Tube and Pipe | Increasing The Volume with Inventor Tube and Pipe | Power of the Autodesk Community | Getting to Know You | Inventor Styles & Standards |Managing Properties with Vault Professional | Vault Configuration | Vault - What is it & Why Do I Need It? | A Little Less Talk - Tube & Pipe Demo | Change Orders & Revisions - Vault, Inventor & AutoCAD | Authoring & Publishing Custom Content
Solved! Go to Solution.
Solved by Curtis_Waguespack. Go to Solution.
Hi cbenner,
Here's a real quick iLogic snippet to do this.
sName = InputBox("Enter the name of the sketched symbol to delete", "iLogic", "")
Dim myIDW As DrawingDocument
myIDW = ThisApplication.ActiveDocument
Dim oSheets As Sheets
oSheets = myIDW.sheets
Dim oSheet As Sheet
Dim oSymbol As SketchedSymbol
For Each oSheet In oSheets
oSheet.activate
For Each oSymbol In myIDW.ActiveSheet.SketchedSymbols
If oSymbol.Definition.Name = sName Then
oSymbol.Delete
End If
Next
Next
Creating a Basic iLogic Rule
http://inventortrenches.blogspot.com/2012/01/creating-basic-ilogic-rule-with-event.html
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Hey thanks! I never got into ilogic much.... never thought I'd need it. Look how wrong you can be!
Chris Benner
Inventor Tube & Pipe, Vault Professional
Cad Tips Tricks & Workarounds | Twitter | LinkedIn
Autodesk University Classes:
Going With The Flow with Inventor Tube and Pipe | Increasing The Volume with Inventor Tube and Pipe | Power of the Autodesk Community | Getting to Know You | Inventor Styles & Standards |Managing Properties with Vault Professional | Vault Configuration | Vault - What is it & Why Do I Need It? | A Little Less Talk - Tube & Pipe Demo | Change Orders & Revisions - Vault, Inventor & AutoCAD | Authoring & Publishing Custom Content
Hey Curtis,
Tried this rule this morning and it worked great, except for the "End if" statement... there was no preceding "if". I took that line out and the code worked fine... pretty sweet actually! Thanks for sharing!
Chris
Chris Benner
Inventor Tube & Pipe, Vault Professional
Cad Tips Tricks & Workarounds | Twitter | LinkedIn
Autodesk University Classes:
Going With The Flow with Inventor Tube and Pipe | Increasing The Volume with Inventor Tube and Pipe | Power of the Autodesk Community | Getting to Know You | Inventor Styles & Standards |Managing Properties with Vault Professional | Vault Configuration | Vault - What is it & Why Do I Need It? | A Little Less Talk - Tube & Pipe Demo | Change Orders & Revisions - Vault, Inventor & AutoCAD | Authoring & Publishing Custom Content