.NET

Reply
Contributor
markc01
Posts: 20
Registered: ‎02-16-2005
Message 1 of 3 (78 Views)

Connecting to the existing ACAD instance

78 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
*Mike Tuersley
Message 2 of 3 (78 Views)

Re: Connecting to the existing ACAD instance

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...
Active Contributor
iggy
Posts: 27
Registered: ‎08-26-2005
Message 3 of 3 (78 Views)

Re: Connecting to the existing ACAD instance

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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!