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!