CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
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 CAD tip # 6487:

Question

CAD 
 %  platform  category 
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
100% *CAD
19.1.2009    23999×  
applies to: AutoCAD ·

See also:
Tip 14361:Extended ATTOUT/ATTIN for block attribute management in Excel (also for LT).
Tip 14202:Recurring "Duplicate Sheet Name" dialogs.
Tip 13907:Low performance when editing blocks in AutoCAD 2024.
Tip 13712:Why do I have an inactive "thousands separator" item in AutoCAD text field formatting?
Tip 10905:Is there a command similar to Revit's "Create Similar" in AutoCAD?


Back    All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD: 
OS: 
Categ: 
Text:
 FAQ
  



Featuring:
Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info


Please use these tips at your own risk.
ARKANCE is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist