Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Drawing Symbols - User Defined

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
cbenner
759 Views, 3 Replies

Drawing Symbols - User Defined

3 REPLIES 3
Message 2 of 4
Curtis_Waguespack
in reply to: cbenner

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

Message 3 of 4
cbenner
in reply to: Curtis_Waguespack
Message 4 of 4
cbenner
in reply to: Curtis_Waguespack

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report