.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
Connecting to the existing ACAD instance
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
62 Views, 2 Replies
08-24-2005 10:37 AM
'm trying to connect to the existing ACAD 2006 instance from a VB.net project using the com interop object.
I'm using the following code:
Dim myApp As AcadApplication
myApp = GetObject(, "Autocad.Application")
myApp.Visible = True
The code keeps returning a NEW instance of ACAD. I want to tap into the EXISTING instance.
Can someone tell me what's wrong?
thanks,
mark c.
Phoenix
I'm using the following code:
Dim myApp As AcadApplication
myApp = GetObject(, "Autocad.Application")
myApp.Visible = True
The code keeps returning a NEW instance of ACAD. I want to tap into the EXISTING instance.
Can someone tell me what's wrong?
thanks,
mark c.
Phoenix
*Mike Tuersley
Re: Connecting to the existing ACAD instance
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-24-2005 01:26 PM in reply to:
markc01
GetActiveObject("AutoCAD.Application.16.2")
-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
Re: Connecting to the existing ACAD instance
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-29-2005 07:07 AM in reply to:
markc01
what do you have to reference to make this work? I am totally new to AutoCAD and I can't get even this little launch code to work.
Thanx
Thanx
