.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GetObject vs. GetACtiveObject

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
425 Views, 0 Replies

GetObject vs. GetACtiveObject

When getting the current instance of an acad session from a .net project, there seems to be two ways to do it:

Dim myApp As AcadApplication
myApp = Marshal.GetActiveObject("Autocad.Application.16.2")

Dim myApp As AcadApplication
myApp = GetObject(, "Autocad.Application.16.2")

both seem to work ok. What's the difference? Which one should be used, why?

thanks,
mark c.
phoenix
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost