CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 6227

CAD tip CAD tip # 6487:

   
Question CAD 
 %  platform  category 
Q - question

How to close the drawing without prompts to save?

A - answer 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    23171×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
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?
Tip 9425:Link/copy two or more texts in an AutoCAD drawing.
Tip 8778:How not lose edited DWG drawing even when closed without saving.


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 glossary   



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 Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist