.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
GetObject vs. GetACtiveO bject
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
135 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?
thanks,
mark c.
phoenix
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
