Message 1 of 5
Why Inventor API opens every time the same Inventor Version

Not applicable
11-05-2020
08:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello guys,
I installed on my machine Inventor 2019 and Inventor 2021. At the moment I am writing a small Inventor API test and I wanna figure out why Inventor API opens every time Inventor 2019 by using this code:
Type invtype = System.Type.GetTypeFromProgID("Inventor.Application");
var inventorApplication = System.Activator.CreateInstance(invtype) as Inventor.Application;
It opens also 2019 even I register the Inventor 2021 as default by opening it and approving the prompt message about reregistering Inventor to 2021 version. The reason why I am doing the test is, I want to figure out how to open a specific Inventor Version with Iventor API.