GetObject and Process Ids

Discussion in 'AutoCAD' started by jah5869, Mar 5, 2004.

  1. jah5869

    jah5869 Guest

    Given I have launched AutoCAD with the shell command and it returned the process Id can I then connect to it and gain control similar to attaching to it with GetObject?
    What I am doing is starting autocad with a profile using the /p switch. What I then want to be able to do is allow the user to switch profiles and force a reload or a restart of AutoCAD.
    Currently trying this with VB.net and AutoCAD2002.

    Thanks
    John
     
    jah5869, Mar 5, 2004
    #1
  2. If there is a document open in AutoCAD, you can get
    it's IDispatch pointer through the Running Object Table
    (ROT), and from that, you can get a pointer to the
    Application object.



    AcadX for AutoCAD 2004 Beta 1
    http://mysite.verizon.net/~vze2vjds/acadx/AcadX16.zip


    control similar to attaching to it with GetObject?
    user to switch profiles and force a reload or a restart of AutoCAD.
     
    Tony Tanzillo, Mar 5, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.