Autodesk Inventor Interop reference older version

Autodesk Inventor Interop reference older version

bradeneuropeArthur
Mentor Mentor
2,995 Views
9 Replies
Message 1 of 10

Autodesk Inventor Interop reference older version

bradeneuropeArthur
Mentor
Mentor

Hi,

 

My question is how can I program in vb.net for an older version of inventor with a newer version inventor.

I want to create a add in referenced to the Autodesk.Inventor.Interop.dll inventor 2017, but I am having installed inventor 2018.

 

How can I do that?

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
Accepted solutions (1)
2,996 Views
9 Replies
Replies (9)
Message 2 of 10

Frederick_Law
Mentor
Mentor
Accepted solution

Most of the old dll are installed at: C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Autodesk.Inventor.Interop

Delete reference to 2018 and add reference to another dll.

Message 3 of 10

bradeneuropeArthur
Mentor
Mentor
Super.
Did not know that.
Now I can program also for older releases.

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 4 of 10

Frederick_Law
Mentor
Mentor

I maintain few version for my addin: 2015, 2017 and 2018.

Open the project, change the reference dll, compiled file location and save it with a new file name.

If there is changes then I'll need to compile it 3 time.

 

I believe there is better, faster way to do this but I haven't figure it out yet.

A batch compile script and a installer to copy would be great.

 

I think I can set my folder to be the same as the ApplicationPlugins folder.

 

0 Likes
Message 5 of 10

woodstylee3
Advocate
Advocate
Message 6 of 10

bradeneuropeArthur
Mentor
Mentor

Hi,

 

Do you no the example code for inventor versions like 2016 2017 2018 versions of inventor?

I mean how to do that?

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 7 of 10

bradeneuropeArthur
Mentor
Mentor
eneurope 

Collaborator

7:42 AM |

Hi,

 

Do you know the example code for inventor versions like 2016 2017 2018 of inventor?

I mean how to do that?

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 8 of 10

Frederick_Law
Mentor
Mentor

My 2012 addin works in 2015 and up.  UI is Ribbon only in newer version.  Basically I use the same VS template.

 

Even Examples in Inventor Help are the same over the year.

Only different is new features in newer versions.  The What's New section in each year's help will have new API features.  As long as you don't use new features, the addin will run in older version.

You'll have error when compile if you use any newer functions.

 

In the .addin file you need to set the version:

  <!--Created for Autodesk Inventor Version 21.0-->

  <SupportedSoftwareVersionGreaterThan>21.0</SupportedSoftwareVersionGreaterThan>

 

0 Likes
Message 9 of 10

bradeneuropeArthur
Mentor
Mentor
But i am not deploying the interop version with my add
in.

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 10 of 10

Frederick_Law
Mentor
Mentor

No, you don't.

As long as the addin is compile with the correct reference it'll run.

Inventor is backward compatible.  2016 addin will run in 2018.  Unless it try to modify Library location Smiley Frustrated

2017 installed 4 old interop: 17-20.  So you should be good with 2016 (20.0).