Posts: 20
Registered: ‎02-16-2005
Message 1 of 1 (156 Views)

GetObject vs. GetACtiveObject

156 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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community