Apprentice Error while opening a contentcenter part

Apprentice Error while opening a contentcenter part

wolfgang_nickl
Advocate Advocate
449 Views
1 Reply
Message 1 of 2

Apprentice Error while opening a contentcenter part

wolfgang_nickl
Advocate
Advocate

Hello together,

we have an apprentice app with the following code.

It works fine for Inventor 2018 contentcenter and normal parts. In Inventor 2019 it results in an error message for contentcenter parts. The Reference to Autodesk.Inventor.Interop.dll from 2019 is set.

 

        Dim oAppren As New Inventor.ApprenticeServerComponent
        Dim oDesgPro As Inventor.DesignProject
        oDesgPro = oAppren.DesignProjectManager.ActiveDesignProject
        oAppren.DesignProjectManager.DesignProjects.ItemByName("Default").Activate()
        Dim oDoc3 As Inventor.ApprenticeServerDocument
        oDoc3 = oAppren.Open("D:\temp\part.ipt")

 

 

Following the error-message:

Ein Ausnahmefehler des Typs "System.Runtime.InteropServices.COMException" ist in mscorlib.dll aufgetreten.

Zusätzliche Informationen: Unbekannter Fehler (Ausnahme von HRESULT: 0x80004005 (E_FAIL))

What is wrong? What must be changed?

 

Best Regards

Wolfgang

0 Likes
Accepted solutions (1)
450 Views
1 Reply
Reply (1)
Message 2 of 2

chandra.shekar.g
Autodesk Support
Autodesk Support
Accepted solution

@wolfgang_nickl,

 

Solution provided in below forum discussion link may be helpful.

 

https://forums.autodesk.com/t5/inventor-customization/apprenticeservercomponent-open-inventor-2019-f...

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network