I'm trying to build an app. from VB.net that automates various versions of ACAD by using the com interop object. Of course I have to reference in the type libraries for each acad version, and that has gone along ok.
When I try to reference in the Autodesk Land 4.0 type lbrary (LandAuto.tlb) I get an error message:
"A reference to 'Autodesk Land 4.0 Type Library' could not be added. Converting the type library to a .NET assembly failed. Could not load type AutoCADLand.IAeccContour from assembly Interop.AutoCADLand, Version=220.127.116.11."
The reference works fine in VB 6. I would think it would be ok in .Net.
Maybe you could generate the Interop assembly yourself, instead of adding a reference to the type library, using tlbimp.exe?
"The Type Library Importer utility (tlbimp.exe) is a command line tool that reads COM type information (typically contained in *.tlb, *.dll or *.exe files) and generates a corresponding .NET interop assembly."
I suspect you will have problems importing the type library in a .NET project as I have. The issue at hand is that the type library has to be coded so that it is importable? into a .NET framework project.
I tried using Borland's type library importer as well as Microsoft's and they both fail.
As mentioned before, ADSK has reproduced this problem but have no schedule for when it may get resolved.