Message 1 of 6
Error message using Inventor Apprentice in Visual Studio 2005

Not applicable
05-13-2009
12:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi -
I've done some looking through the site and on the Internet trying to find a solution to a problem with a VB.NET application I'm attempting to create. Unfortunately, I'm stumped by an error message that has prevented me from moving forward with any Inventor customizations.
Tools: Visual Studio 2005 sp1, Inventor 11 Stand Alone install
OS: Windows Vista 64 sp1
I installed the developer tools under the SDK folder. I then added a reference in my VB.NET project in COM to the component named: AutoDesk Inventor Object Library. It appears under references 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 is as follows:
{code}
'// 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
{code}
When I execute 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
Any suggestions? Edited by: rschmaltz on May 13, 2009 7:48 PM (added code tags)
I've done some looking through the site and on the Internet trying to find a solution to a problem with a VB.NET application I'm attempting to create. Unfortunately, I'm stumped by an error message that has prevented me from moving forward with any Inventor customizations.
Tools: Visual Studio 2005 sp1, Inventor 11 Stand Alone install
OS: Windows Vista 64 sp1
I installed the developer tools under the SDK folder. I then added a reference in my VB.NET project in COM to the component named: AutoDesk Inventor Object Library. It appears under references 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 is as follows:
{code}
'// 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
{code}
When I execute 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
Any suggestions? Edited by: rschmaltz on May 13, 2009 7:48 PM (added code tags)