Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
KKizildemir
600 Views, 4 Replies

Marshal.GetActiveObject fails with InventorServer Object. Help!

Hi,

 

I'am trying to write some code on VS .NET Framework 4.6.1 and to generate a .dll file for my Inventor model that works on C360. So I can not use 'Inventor.Application' object. That's OK.

When I use 'Inventor.InventorServer' object, I can't set that object reference to the intance of my object. I think 'Marshal.GetActiveObject' does not work in this case. So what is the solution?

 

This is the error message: Object reference not set to an instance of an object.

 

This is related part of my code:

 

        Dim oThisServer As Inventor.InventorServer = Nothing
        Try
            oThisServer = Marshal.GetActiveObject("Inventor.InventorServer")
        Catch ex As Exception
            Exit Sub
        End Try

 

Thanks!

 

 

Signature

website
emailskypelinkedinyoutubeemail