Embedding/Enumerating image files within a Drawing Sheet

Embedding/Enumerating image files within a Drawing Sheet

Anonymous
Not applicable
315 Views
1 Reply
Message 1 of 2

Embedding/Enumerating image files within a Drawing Sheet

Anonymous
Not applicable

Inventor 2017 using Visual Studio 2019 and C#.

 

Referring to a .DWG  drawing file.

 

I have an Add-In I created years ago, that I would like to add some functionality to.

 

I would like to be able to detect whether an image file is embedded within a drawing sheet.

If one already exists I would like to determine the insertion point and scale of said image.

I would also like to be able to replace said image, or insert one if image not present. The image is a bitmap or jpeg.

 

This image is directly inserted into a drawing sheet, not part of a sketch or part of a titleblock.

 

Any ideas? Solution does not have to be in C# but preferred if possible.

 

Thanks in advance.

0 Likes
316 Views
1 Reply
Reply (1)
Message 2 of 2

YuhanZhang
Autodesk
Autodesk

You can access the 3rd party files using Document.ReferencedOLEFileDescriptors, but currently you can't use the ReferencedOLEFileDescriptor to change the source, you can log to IdeaStation if you need it via API. Hope this helps.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

0 Likes