Why Inventor API opens every time the same Inventor Version

Why Inventor API opens every time the same Inventor Version

Anonymous
Not applicable
515 Views
4 Replies
Message 1 of 5

Why Inventor API opens every time the same Inventor Version

Anonymous
Not applicable

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.

0 Likes
516 Views
4 Replies
Replies (4)
Message 2 of 5

bradeneuropeArthur
Mentor
Mentor

If you make the reference in the app to the 2021 version it should not open the 2019 version anymore!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 5

Anonymous
Not applicable

Thank you for answering. How I should do the reference to the 2021 version?

0 Likes
Message 4 of 5

Anonymous
Not applicable

I mean in the C# Code.

0 Likes
Message 5 of 5

bradeneuropeArthur
Mentor
Mentor

bradeneuropeArthur_0-1604909065659.png

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes