Connecting to the existing ACAD instance

Connecting to the existing ACAD instance

Anonymous
Not applicable
509 Views
2 Replies
Message 1 of 3

Connecting to the existing ACAD instance

Anonymous
Not applicable
'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
0 Likes
510 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
GetActiveObject("AutoCAD.Application.16.2")

-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
0 Likes
Message 3 of 3

Anonymous
Not applicable
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
0 Likes