Inventor Apprentice Server - Open dwg Catastrophic failure

Inventor Apprentice Server - Open dwg Catastrophic failure

5107839414
Contributor Contributor
448 Views
7 Replies
Message 1 of 8

Inventor Apprentice Server - Open dwg Catastrophic failure

5107839414
Contributor
Contributor

Hi,

 

I'm trying to open Inventor DWG with apprentice server but it always throws "Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))".

 

I'm using Inventor 2022 with same Apprentice version.

The exception is thrown on the following line:
Inventor.ApprenticeServerDrawingDocument dwgDoc = apprentice.Open(dwgPath) as Inventor.ApprenticeServerDrawingDocument;

 

I can open .ipt, .iam, .idw files but not Inventor .dwg files.
I tried different Inventor .dwg files but none of them worked.
Any ideas why?

 

0 Likes
449 Views
7 Replies
Replies (7)
Message 2 of 8

bradeneuropeArthur
Mentor
Mentor

Have you installed more versions of inventor?

What if you convert the dwg to idw and than open it with apprentice. Does that work. 

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 8

5107839414
Contributor
Contributor

If I convert Inventor .dwg to .idw then I can open file in apprentice.

I had multiple versions of Inventor.
I removed 2021 version, restarted computer but the issue still remains.

 

0 Likes
Message 4 of 8

bradeneuropeArthur
Mentor
Mentor
does design assistent work?
Have you also Autocad installed?
Have you set to default use Autocad to open dgw files?

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 8

5107839414
Contributor
Contributor

Design Assistant works.
I have Autocad installed. 
I tried both Autocad and Inventor as default program for opening .dwg files but apprentice still throws the same exception.

0 Likes
Message 6 of 8

bradeneuropeArthur
Mentor
Mentor

can you check the file association for the dwg file?

https://www.digitaltrends.com/computing/how-to-change-file-associations/

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 8

5107839414
Contributor
Contributor

.dwg files are associated with Inventor right now.

 

5107839414_1-1631867541031.png

I also tried to associate them with Autocad, but I still had the same issue.

 

0 Likes
Message 8 of 8

5107839414
Contributor
Contributor

This is my Exception stackTrace:


at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Inventor.ApprenticeServer.Open(String FullDocumentName)
at InventorProductionExporter.Util.ReadDimensions(Database db) in D:\Dropbox\Developing\InventorProductionExporter\Util.cs:line 31
at InventorProductionExporter.MyCommands.InventorImportNumber() in D:\Dropbox\Developing\InventorProductionExporter\myCommands.cs:line 62

0 Likes