ApprenticeServerComponent.open, Inventor 2019 files and windows accounts

ApprenticeServerComponent.open, Inventor 2019 files and windows accounts

sellis
Advocate Advocate
6,631 Views
23 Replies
Message 1 of 24

ApprenticeServerComponent.open, Inventor 2019 files and windows accounts

sellis
Advocate
Advocate

We have run into a problem with 2019 files and a VB.net excel addin (windows 10). It works with 2018 idw files but errors on Inventor.ApprenticeServerComponent.Open when opening a 2019 idw.

 

Dim oApprentice As New Inventor.ApprenticeServerComponent
Dim oApprenticeDrawingDoc As Inventor.ApprenticeServerDrawingDocument = oApprentice.Open(FilePath)

If I log into a computer as network administrator it works fine. Does not work with A user with administrator rights.

 

I have disabled UAC in the registry with no luck. Could be something funky with our network...

 

Any suggestions?

 

Thanks

Stan

 

0 Likes
Accepted solutions (1)
6,632 Views
23 Replies
Replies (23)
Message 21 of 24

chandra.shekar.g
Autodesk Support
Autodesk Support

@sellis,

 

There might be due to Inventor 2019 register issue when others login. I mean, others login might launched Inventor versions like Inventor 2018 or below versions. Due to this, Inventor 2019 files can not be opened in older versions.

 

To avoid this, make sure that Inventor 2019 is launched and closed. Now, Inventor 2019 apprentice is available to access Inventor 2019 files.

 

32 bit applications are not supported in Inventor 2019 apprentice API.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 22 of 24

bradeneuropeArthur
Mentor
Mentor

As I earlier wrote:

 

"Have you set the correct inventor 2019 reference in your project from the add in?
Has inventor 2019 registered correctly? This means open inventor 2019 on all machines and with all users (Admin.)
If not. Open inventor 2019 as administrator and try again. "

 

 

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 23 of 24

sellis
Advocate
Advocate

@YuhanZhangwrote:

I can reproduce the problem with the tool, and I find the problem should be that the Inventor 2019 removes the support to Apprentice x86 bit, and so the tool needs to be recompiled to support the x64 version only, so you can open the VB project, and in the Properties of the project, change the Target CPU in the Compile tab to x64 like below, or AnyCPU but make sure to uncheck the Prefer 32-bit option, then recompile it and check if it works:

 


Recompiled and discovered the computers that did not work originally have office 365 32bit. That was likely the root as mine is 64 bit and worked. Never occurred to me that they would have 32 bit installed. So switched one over to office 365 64bit and the addin runs.

 

Thanks!

 

Curious how logging in as network administrator worked unless it was not pointing to the 2019 files. Between the mapped drives and syncing I could have been trying week old files... 

 

Anyway, Thanks again. 

 

 

0 Likes
Message 24 of 24

chandra.shekar.g
Autodesk Support
Autodesk Support

@sellis,

 

If problem is solved, click on "Accept as solution" which reply answers your issue.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes