GetObject vs. GetACtiveObject

GetObject vs. GetACtiveObject

Anonymous
Not applicable
581 Views
0 Replies
Message 1 of 1

GetObject vs. GetACtiveObject

Anonymous
Not applicable
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 Likes
582 Views
0 Replies
Replies (0)