Apprentice server component not working on Inventor 2019

Apprentice server component not working on Inventor 2019

Anonymous
Not applicable
1,414 Views
3 Replies
Message 1 of 4

Apprentice server component not working on Inventor 2019

Anonymous
Not applicable

Hello, 

I had a macro in vba Excel that worked fine with Inventor 2018 but now with the update to Inventor 2019, it seems that the module "Apprentice server" doesn't exists anymore (Run-time Error 'xxx-xxxxxxxx (8007007e)').

 

Here is my code (to change the workspace path of an existing design project): 

Dim oIV As New ApprenticeServerComponent
Dim oProjectMgr As DesignProjectManager
Dim oproject As DesignProject

Set oProjectMgr = oIV.DesignProjectManager
Set oproject = oProjectMgr.DesignProjects.AddExisting(*path of my design project*)

oproject.WorkspacePath = *path of my desired workspace*

 

Thank you for your help.

Regards, 

Mathias

0 Likes
1,415 Views
3 Replies
Replies (3)
Message 2 of 4

bradeneuropeArthur
Mentor
Mentor

Did you make the references to the interop correctly.

you need to use the inventor 2019 version of it stored under C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Autodesk.Inventor.Interop\.....

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 3 of 4

Anonymous
Not applicable

Hello Bradeneurope, 

 

Thank you for your reply.

How can I be sure that the references to interop are correct? 

I found multiples dll files in the folder that you indicates but I don't know what to do with it.. 

Thanks

0 Likes
Message 4 of 4

bradeneuropeArthur
Mentor
Mentor

look at the version in the references!

This should be like this for you:

C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Autodesk.Inventor.Interop\v4.0_23.#.#.#__################\Autodesk.Inventor.Interop.dll.

 

Regards,

Autodesk Software: Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018
Programming Skills: Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Dimension Component! | Partlist Export! | Derive I-properties! | Vault Prompts Via API! | Vault Handbook/Manual!
Drawing Toggle Sheets! | Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes