CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 5743 

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).
100% *  CAD 
19.1.2009    15885×  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
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.
Tip 8754:Thumbnail settings can influence AutoCAD DWG file size.
Tip 7723:How to quit all open drawings without saving?

Back   All CAD Tips All CAD tips&tricks

Y2K9 bug in 3ds max 2008 - activation error (expired). « | » AutoCAD: freehand style drawing (squiggle)

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   

Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.