Inventor application 2025

Inventor application 2025

Cadkunde.nl
Collaborator Collaborator
285 Views
2 Replies
Message 1 of 3

Inventor application 2025

Cadkunde.nl
Collaborator
Collaborator

Hello,

 

My collegue working in C# got code working in Inventor 2025 / framework 8.0, but i get error in vb.net

 

Its about getting the active Inventor application.

 

So the whole stuff to find a com object works as you can see:

 

Cadkundenl_0-1730206157950.png

 

The following line is to cast that object to Globals.oApp which is juist:

 

Cadkundenl_3-1730206618239.png

 

Inside Globals:

Cadkundenl_2-1730206456138.png

 

But I get error. Same with TryCast, or:

 

Dim inventorApp As Inventor.Application = CType(obj, Inventor.Application)

 

What am I doing wrong?

 

Thanks in advance

0 Likes
286 Views
2 Replies
Replies (2)
Message 2 of 3

jjstr8
Collaborator
Collaborator

Is your Inventor interop reference the correct version?

0 Likes
Message 3 of 3

Cadkunde.nl
Collaborator
Collaborator

That sounds like something I could have definitely have forgotten for this project.

I'll try tomorrow, thanks

0 Likes