Adding a newer version of the “Autodesk Inventor Object Library” to Visual Studio Project

Adding a newer version of the “Autodesk Inventor Object Library” to Visual Studio Project

Hubert_Los
Advocate Advocate
804 Views
6 Replies
Message 1 of 7

Adding a newer version of the “Autodesk Inventor Object Library” to Visual Studio Project

Hubert_Los
Advocate
Advocate

Hello,

I have 3 versions of Inventor installed (2018, 2022, 2025). I created a project. In the references, I have only “Autodesk Inventor Object Library” of 2018 to choose from. I need to change it to 2022 because I can't read files created in Inventor 2022. How can I change it?

 

Hubert_Los_0-1716984430852.png

 

0 Likes
805 Views
6 Replies
Replies (6)
Message 2 of 7

bradeneuropeArthur
Mentor
Mentor

Here are all versions located:

 

C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Autodesk.Inventor.Interop

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 7

Frederick_Law
Mentor
Mentor

Click "Browse" on left and "Browse" button to select new one to add:

VS_Reference-01.jpg

0 Likes
Message 4 of 7

Hubert_Los
Advocate
Advocate

How do I know which version to choose? I selected the latest one I have (v4.0_29.0.0__d84147f8b4276564), unfortunately I still can't read the parts created in versions 2022 and 2025. I can only open the file from version 2018. I also tried selecting other references but the effect is the same. Shouldn't it be that the latest file, opens all previous versions?

Hubert_Los_0-1717050538884.png

 




0 Likes
Message 5 of 7

Michael.Navara
Advisor
Advisor

I recommend you to use folder structure similar to this sample

MichaelNavara_0-1717051616985.png

Development\ - contains all development data

Development\out\ - Final builds (binaries, MSI packages, etc.)

Development\ref\ - Copy of all third party libraries used in project.

Development\src\ - All source code files

Documentation\ - files which describes the project, like specification, help files, etc.

Realization\ - data for implementation to end user, support, data sets. etc.

 

To the ref\ folder copy the files:

autodesk.inventor.interop.dll - Primary interop library for Inventor API

autodesk.inventor.interop.xml - Documentation file for intellisense.

 

In the project remove the default reference and add new to this copy in ref\ folder. 

In future if you want to update inventor version, you can just replace the file in ref\ folder.

Message 6 of 7

Frederick_Law
Mentor
Mentor

I save different solution and change build folder:

VS-Solution-01.jpg

 

0 Likes
Message 7 of 7

Frederick_Law
Mentor
Mentor

@Hubert_Los wrote:

Shouldn't it be that the latest file, opens all previous versions?

 


Yes, it should open.

Do you have the SDK and the "AssemblyTree" sample?

0 Likes