20 Posts
0 Kudos
Registered: ‎02-16-2005
Post 1 of 1

GetObject vs. GetACtiveObject

183 Views, 0 Replies
08-24-2005 04:19 PM
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?

mark c.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!