VB.NET and AutoDesk Inventor 11 customization issues
I have looked through the site and on the internet trying to find a solution to the problem with the VB.NET application I am trying to create. Unfortunately I ran into an error message that was preventing me from moving forward with any Inventor settings.
Tools: Visual Studio 2005 sp1, Inventor 11 Stand Alone install
OS: Windows Vista 64 sp1
I have installed developer tools in SDK folder. Then I added a reference to my VB.NET in COM project to a component named: AutoDesk Inventor Object Library. It appears under the links for my project as:
Reference Name: Autodesk Inventor Object Library
Type: COM
Version: 1.0.0.0
Copy Local: True
Path: C:\Users\rschmalt\Visual Studio 2005\Projects\
InvTest\InvTest\obj\Debug\Interop.Inventor.dll
My code looks like this:
'Opens Inventor Apprentice session to read part numbers
Dim oApprentice As New Inventor.ApprenticeServerComponent
Dim asmDoc As Inventor.ApprenticeServerDocument
Dim refDoc As Inventor.ApprenticeServerDocument
asmDoc = oApprentice.Open(strIAMLocation)
For Each refDoc In asmDoc.ReferencedDocuments
MessageBox.Show(refDoc.FullFileName.ToString)
Next
When I have executed it, I get the following message:
Retrieving the COM class factory for component with CLSID {C343ED84-A129-11D3-B799-0060B0F159EF} failed due to the following error: 80040154
I tried looking directly into DLL ( Interop.Inventor.dll
) and then it shows as .NET type in references, but the error remains the same.
Is it possible that there is a conflict between Vista 64 (Inventor 11 32bit)? Any suggestions?
a source to share