Determining if AutoCAD has been started.

Discussion in 'AutoCAD' started by jimmilam, Jun 21, 2004.

  1. jimmilam

    jimmilam Guest

    When using Excel VBA, is there a way to determine if AutoCAD has been started or not?
     
    jimmilam, Jun 21, 2004
    #1
  2. jimmilam

    Joe Sutphin Guest

    On Error Resume Next

    'try to get running instant of AutoCAD
    Set oApp = GetObject(, "AutoCAD.Application")

    If Err Then MsgBox "AutoCAD is not currently running"

    Joe
    --

    started or not?
     
    Joe Sutphin, Jun 21, 2004
    #2
  3. jimmilam

    jimmilam Guest

    Thanks, Joe. That should do it.
     
    jimmilam, Jun 21, 2004
    #3
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.