Over 1.095.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and variables.
CAD tip # 6487:
Question
A
If you issue the CLOSE, QUIT or END command and your drawing is changed (i.e. 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 (suppressing the save prompt):
(command "_VBASTMT" "ThisDrawing.Close, false")In the latest versions of AutoCAD (with no VBA installed) you can use also:
(command "_CLOSE" "_Y")(closes just the drawing document), or:
(command "_QUIT" "_Y")(closes also the AutoCAD application).
ACAD


19.1.2009
23999×
applies to: AutoCAD ·