Monday, June 8, 2009

How to close the drawing without prompts to save?

If you issue the CLOSE, QUIT or END command and your drawing is changed (DBMOD > 0), AutoCAD will prompt you to save the current drawing. Sometimes you may need to just abandon the drawing, regardless whether it was changed or not. This is the case e.g. when performing a script or menu macro.

In these situations you can use the following Lisp/VBA command to close/quit the current drawing, without any asking and not saving any editing:

(command "_VBASTMT" "ThisDrawing.Close, false")

No comments:

Post a Comment