
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
First time posting, hopefully this is the right place. We recently upgraded to new Dell Precision workstations (Windows 10) and have run into issues when running the Inventor Apprentice server (2019.1.1 is installed). For debugging, I am just trying to open a file on my desktop in apprentice, see code copied below. It gets hung up on the oApprentice.Open.
Public Sub TestApprentice()
' Create a new instance of Apprentice.
Dim oApprentice As New ApprenticeServerComponent
' Open a document.
Dim oDoc As ApprenticeServerDocument
Set oDoc = oApprentice.Open("C:\Users\User\Desktop\00031500.ipt")
End Sub
As far as I can tell, this looks like an issue with script being unable to find the command in the reference. I have "Autodesk Inventor Object Library" selected as a reference, which I believe is correct. Attached are my references selected from the VBA editor available from Inventor. Also attached is the specific error window.
We do not have any other versions of Inventor on the PC. I recently uninstalled and then reinstalled 2019 to no avail (from Autodesk supplied USB stick).
I am able to run SDK samples using the apprentice server, specifically properties.exe under VB.NET, after I recompiled it targeting an x64 cpu. The SDK appears to point to different references. I don't know if my Inventor library is the problem or if it is something deeper in my settings. My experience with VBA is limited, mostly writing code in the VBA editor.
Any help or guidance would be greatly appreciated.
-Alan
Solved! Go to Solution.