Inventor Customization

Reply
New Member
HytecoMark
Posts: 1
Registered: ‎01-09-2013
Message 1 of 4 (225 Views)

Programing with OLE Image

225 Views, 3 Replies
01-09-2013 07:02 PM

Hi,

I am trying to automate some drawing (.idw) revision processes.

I am able to delete existing/replace/addnew OLE References.

What I am having troubles with is manipulating the actual OLE Image container.

So if I was to add a new OLE Reference like you would when clicking Manage > Insert Object > Create From File.

 

ReferencedOLEFileDescriptors.Add("Filename",3331)

All this code does is add the new ref to the 3rd Party Folder.

I have no idea how to create/move this new referenced container.

These OLE objects seem to be global. In the sense that each new sheet added to the .idw can have this reference turned visible and moved but its actual handle is unknown to me??

The OLE reference documents used are circuit diagrams made in Visio.

 

Any help would be much appreciated.

 

Mark

ADN Support Specialist
Vladimir.Ananyev
Posts: 514
Registered: ‎08-14-2012
Message 2 of 4 (190 Views)

Re: Programing with OLE Image

01-19-2013 02:33 AM in reply to: HytecoMark

Thank you for this post. Unfortunately there is not API exposed to place and reposition the embedded object in drawing sheet. We logged Inventor API wishlist for this.


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

*Expert Elite*
Crstiano
Posts: 146
Registered: ‎03-11-2012
Message 3 of 4 (105 Views)

Re: Programing with OLE Image

01-08-2014 07:03 AM in reply to: Vladimir.Ananyev
Hi Vladimir,
Today, you have more information about work with embedded objects ? (in my case for assembly)

Thanks in advance.
Cristiano Oliveira

Colaborador MFG Comunidade Autodesk Brasil
ConsultCAD - www.facebook.com/ConsultCAD
---
Por favor, marque Accept as Solution se a sua pergunta foi respondida. Kudos se gostou. ⇘
ADN Support Specialist
Vladimir.Ananyev
Posts: 514
Registered: ‎08-14-2012
Message 4 of 4 (93 Views)

Re: Programing with OLE Image

01-09-2014 04:50 AM in reply to: Crstiano

No news on the API to reposition the embedded object in drawing sheet, it is still in the Inventor API wishlist.

:smileysad:


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!