.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Connecting to the existing ACAD instance

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
216 Views, 2 Replies

Connecting to the existing ACAD instance

'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
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

GetActiveObject("AutoCAD.Application.16.2")

-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
Message 3 of 3
bn
Participant
in reply to: Anonymous

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost