Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add Sketch Symbols

1 REPLY 1
Reply
Message 1 of 2
CGVJM6DF
82 Views, 1 Reply

Add Sketch Symbols

Hi,

 

I'm trying to add a Sketch Symbol to a drawing document.

But something is wrong...

This is the line:

Set oSymDef = oDDoc.SketchedSymbolDefinitions.Item("Grinding direction")

And this is the symbol location: 

CGVJM6DF_0-1711483143425.png

 

Can somebody help my with this?

 

1 REPLY 1
Message 2 of 2
WCrihfield
in reply to: CGVJM6DF

Hi @CGVJM6DF.  Can you please describe what is wrong in more detail?  It looks like you have a SketchedSymbolDefinition with the same name in two places.  One is already within your active document.  The other one is stored within your "SketchedSymbols.idw" library file.  You will only be able to get the one that is already located within your active document with that line of code.  To access the other one (in your library file), you would have to use a different process to copy that version into your active document, and overwrite the one with the same name in your active document (SketchedSymbolDefinitions.AddFromLibrary).  If you are getting an error message, then could you please tell us what the error message says?

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report