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: 

Possible to insert picture with location given

2 REPLIES 2
Reply
Message 1 of 3
pball
247 Views, 2 Replies

Possible to insert picture with location given

I have some code to insert a barcode image generated by something else, but the image always inserts below the drawing on the left side. Is is possible to specify a location when inserting it or move it after it's inserted? Thanks.

 

'Create a file descriptor
Dim oRefOleFileDes As ReferencedOLEFileDescriptor

'Set it to an image "path" is the full file name
Set oRefOleFileDes = oDoc.ReferencedOLEFileDescriptors.Add(path, kOLEDocumentEmbeddingObject)

'Set the name of the barcode image in Inventor
oRefOleFileDes.DisplayName = "BarCode"

'Make it visible
oRefOleFileDes.BrowserVisible = True
oRefOleFileDes.Visible = True

 

2 REPLIES 2
Message 2 of 3
pball
in reply to: pball

bump for help
Message 3 of 3
pball
in reply to: pball

One more bump, since this really bugs me since I can move a note around with a script to change sheet size but I can't move the barcode image.

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

Post to forums  

Autodesk Design & Make Report