Getobject function failure

Getobject function failure

ali.shahmirzadi
Contributor Contributor
526 Views
2 Replies
Message 1 of 3

Getobject function failure

ali.shahmirzadi
Contributor
Contributor

Hi, 

 

I am trying to run the following code using Visual Studio 19, and Inventor pro 2022, Windows 10 and it wont run. I am new to VB but I have lots of experience with VBA. I have followed the instruction line by  line form this link https://www.autodesk.com/autodesk-university/class/Creating-Add-Ins-Inventor-2018#video and I cant g...

System.Runtime.InteropServices.Marshal.GetActiveObject("Inventor.Application")

 

but still same error, can someone help please?

 

Regards

Ali

 

 

alishahmirzadi_1-1636753520075.png

 

0 Likes
Accepted solutions (1)
527 Views
2 Replies
Replies (2)
Message 2 of 3

CattabianiI
Collaborator
Collaborator

HAve you checked that error online? you can find some hints to try to fix the issue.
The interop version you've referenced is the same of your running Inventor?

0 Likes
Message 3 of 3

ali.shahmirzadi
Contributor
Contributor
Accepted solution

Thanks for your attention and response, 

I had to post this under another account and the resolution was running Visual Studio as administrator 

 

 

0 Likes