Debugging in the newer version of .Net in c#

Debugging in the newer version of .Net in c#

Hubert_Los
Advocate Advocate
542 Views
2 Replies
Message 1 of 3

Debugging in the newer version of .Net in c#

Hubert_Los
Advocate
Advocate

Hello,

 

I have a problem because I would like to test the program in c#. Unfortunately, the "Marshal.GetActiveObject" function does not work in newer versions of .Net. At least from what I have been able to find out.
Do you have another way to get the Inventor program?

Hubert_Los_0-1713475858389.png

 

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

Frederick_Law
Mentor
Mentor

Try:

invApp = addInSiteObject.Application

0 Likes
Message 3 of 3

Michael.Navara
Advisor
Advisor
Accepted solution

See this topic on StackOverflow.

 

Another sample from Autodesk is in SDK for Inventor 2025

...\DeveloperTools\Samples\VCSharp.NET\Standalone Applications\Inventor\SimpleExe\MarshalCore.cs