Apprentice

Apprentice

mohamedtawakol12
Participant Participant
1,837 Views
12 Replies
Message 1 of 13

Apprentice

mohamedtawakol12
Participant
Participant

Hello I am trying to implement simple code using apprentice on VB.NET and the following error occurs 

"System.Runtime.InteropServices.COMException: 'Retrieving the COM class factory for component with CLSID {C343ED84-A129-11D3-B799-0060B0F159EF} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).' "

I searched with the error and it showed me a solution to make sure inventor view is installed so I did install it again. but the error persists. And I checked the object viewer the object ApprenticeServerComponent is empty as shown with the attached picture. Can anyone please suggest a fix ?

0 Likes
Accepted solutions (1)
1,838 Views
12 Replies
Replies (12)
Message 2 of 13

bradeneuropeArthur
Mentor
Mentor

What version of Inventor are you using?

 

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
Message 3 of 13

mohamedtawakol12
Participant
Participant
I am using inventor 2021 and i installed inventor viewer 2021 when trying to fix
0 Likes
Message 4 of 13

bradeneuropeArthur
Mentor
Mentor
have you removed older versions of Inventor?

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
Message 5 of 13

Michael.Navara
Advisor
Advisor
Accepted solution

Usual mistake is bad compile settings. Application which uses Apprentice MUST be compiled as x64. Not x86 or AnyCPU with "Prefer 32-bit" option.

 

Message 6 of 13

bradeneuropeArthur
Mentor
Mentor

That is true!

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
Message 7 of 13

mohamedtawakol12
Participant
Participant
If i am using visual studio 2019 community , how can i make sure i am compiling on x64?
0 Likes
Message 8 of 13

mohamedtawakol12
Participant
Participant
Yes i had removed 2019
0 Likes
Message 9 of 13

Michael.Navara
Advisor
Advisor

Compile as x64

MichaelNavara_0-1651732774533.png

 

And this is my recommendation how to configure Autodesk.Inventor.Interop.dll

MichaelNavara_1-1651732935469.png

 

 

 

Message 10 of 13

mohamedtawakol12
Participant
Participant

Thank you very much this solves the first error, but sadly I encountered another error as you can see in the attached image. I am trying to change parameters with apprentice or is this not possible with apprentice ? 

0 Likes
Message 11 of 13

Michael.Navara
Advisor
Advisor

This is not a bug, this is a feature.

In ApprenticeServer is available different set of functions and properties. Some of them is not implemented.

Usually Apprentice is used for manipulation with iProperties and document references. Manipulation with parametrs and other modeling features is not available.

0 Likes
Message 12 of 13

mohamedtawakol12
Participant
Participant
Ah, Thanks so I can't access parameters through apprentice ? From what I read on the Api help on apprentice that the top level objects are the big difference and other objects work fine is there a resourceI can learn more about apprentice from?
0 Likes