We introduced where to find the Inventor COM Interop assemblies for various versions of Inventor previously. In fact, there is another way to reference in the Inventor COM library, through the COM Type Library in GAC directly.
In this article, we are going to focus on this. It’s also simple enough. The Inventor COM Object (Type) Library can be found from the COM tab of the same Add Reference dialog regardless of C# or VB.NET.
When a good version of the Inventor Object Library is chosen and the Add button is pressed, a COM Interop assembly will be created automatically and be referenced into the project accordingly. One thing to note however is that the auto-named assembly name is Inventor this time and it has a bit different properties than the Autodesk.Inventor.Interop.
The same fact makes this approach look not so friendly. Firstly, we have to check the File Version of the Inventor Object Library to know for which Inventor version is the COM library is. Secondly, we’d better change the resultant assembly name to indicate which version it really is as the default Version is always 184.108.40.206 regardless of whatever Inventor COM library it is created from. Thirdly, with Inventor .NET Addin Wizard (InventorNetAddinWizard) handy, why should we take the trouble?
Inventor .NET Addin Wizard (InventorNetAddinWizard) can help generate the Inventor .NET addin project either in C# or VB.NET automatically and professionally in only a few seconds. The list of its cool features and the link to its installer download can be found from the A Wizard for Inventor .NET Addin page.