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: 

C# Add-In: Overwrite 3rd Party embedded image at opening or using idw

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
253 Views, 0 Replies

C# Add-In: Overwrite 3rd Party embedded image at opening or using idw

Hello!

I would like to create an add-in, that can create and/or refresh an image on a drawing dinamically, or at opening time.

I must create QR, Barcode and Datamatrix on drawings. It must contain the "Part Number" iProperty only.

I have the methods to create them as image (in memory), but I must overwrite the existing images with this.
Usually I use C# only but I can understand or use VB codes. 

In summary:
 - How can I create to auto-execution? (OnOpen event?)

 - How to overwrite images, that phisically not exist in the folder?

(As an image on hard drive, just in 3rd Party embedded list like a virtual folder)

 - Is there any other solution to get "Part Number" iProperty?

I found only this method for get iProperty (I placed everithing in one line):

((Inventor.Application)System.Activator.CreateInstance((Type.GetTypeFromProgID("Inventor.Application")))).ActiveDocument.PropertySets["Design Tracking Properties"].customPropSet.ItemByPropId[5].Value

 

Can anybody help me?

 

Thank You for your answer!

0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report