Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Inventor instance access

dhanshri_gavas
Contributor

Inventor instance access

dhanshri_gavas
Contributor
Contributor


 If I have multiple instances open in Inventor (assuming 3 instances are open) and I want to access the 3rd instance as an active instance, how I can get that instance using the Inventor API? because currently getting 1st instance only even if I am running 3rd instance. 

Please find below code snippet that I am using to get the inventor instance

 Inventor.Application invApp = Marshal.GetActiveObject("Inventor.Application") as Inventor.Application;

Thanks in advance!

0 Likes
Reply
229 Views
2 Replies
Replies (2)

Michael.Navara
Advisor
Advisor

Short answer: This is not possible

 

But if you are brave, here is the article which describes how to access COM objects from ROT. Few years ago I used similar approach for Inventor and it works, but I don't have the source code anymore. 

0 Likes

dhanshri_gavas
Contributor
Contributor

Hi

Based on your response, I believe you're accessing the instance from a different version, such as Inventor 2022, Inventor 2023. However, I'm attempting to access an instance from the same version as Inventor 2023, which has three instances open, the third of which I want to access. How to access similar instances?

0 Likes