• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Contributor
    Posts: 20
    Registered: ‎02-16-2005

    Connecting to the existing ACAD instance

    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
    Please use plain text.
    *Mike Tuersley

    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...
    Please use plain text.
    Active Contributor
    Posts: 27
    Registered: ‎08-26-2005

    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
    Please use plain text.