- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Inventor instance access
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?