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

    .NET

    Reply
    Distinguished Contributor
    Posts: 267
    Registered: ‎12-03-2003

    AutoCAD sessions

    94 Views, 4 Replies
    07-25-2005 06:11 AM
    How can I obtain all runnning intances of AutoCAD running on a machine? I'd like a pointer to each 1 in my application.
    Please use plain text.
    Distinguished Contributor
    Posts: 195
    Registered: ‎10-03-2003

    Re: AutoCAD sessions

    07-25-2005 10:51 AM in reply to: thenrich
    Dim p As Process
    For Each p In Process.GetProcessesByName("acad")
    Console.WriteLine(p.ToString)
    Next
    Please use plain text.
    Distinguished Contributor
    Posts: 267
    Registered: ‎12-03-2003

    Re: AutoCAD sessions

    07-25-2005 10:53 AM in reply to: thenrich
    How does that give me a pointer to the application so I can execute methods and properties on it?
    Please use plain text.
    *Tony Tanzillo

    Re: AutoCAD sessions

    07-25-2005 03:59 PM in reply to: thenrich
    > "How can I obtain all running instances of AutoCAD"...

    What exactly do you mean by 'running instances' ?

    The AcadApplication object, or something else?

    --
    http://www.caddzone.com

    AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
    http://www.acadxtabs.com

    wrote in message news:4909919@discussion.autodesk.com...
    How can I obtain all runnning intances of AutoCAD running on a machine? I'd like a pointer to each 1 in my application.
    Please use plain text.
    Distinguished Contributor
    Posts: 267
    Registered: ‎12-03-2003

    Re: AutoCAD sessions

    07-26-2005 05:21 AM in reply to: thenrich
    yes AcadApplication - all of them.....
    Please use plain text.