How to close AutoCAD from other application

Discussion in 'AutoCAD' started by Bendik Engebretsen, Dec 2, 2004.

  1. Is there a any command that will close the AutoCAD application itself ?
    What about a command to close a document without being asked to save changes
    ?

    Thanks!

    Bendik
     
    Bendik Engebretsen, Dec 2, 2004
    #1
  2. Bendik Engebretsen

    CS Guest

    in VBA

    AcadApplication.ActiveDocument.Close False
    ' to close the drawing without saving

    AcadApplication.ActiveDocument.Close True
    'to close and save a drawing

    AcadApplication.ActiveDocument.Close True, "C:\Some Path\Copy.dwg
    'to close and save a drawing as for SaveAs Copy or Saving a drawing that
    'was just created


    AcadApplication.Quit
    'seems self explanitory.


    Regards,
    Corey
     
    CS, Dec 2, 2004
    #2
  3. Thanks! But, is there a way to do the same from DDE ?

    Bendik
     
    Bendik Engebretsen, Dec 3, 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.