CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 3705 

CAD tip CAD tip # 7723:

Question CAD 
 %  platform  category 
Q - question

How to quit all open drawings without saving?

A - answer If you want to quickly close (abandon, quit) all drawings opened in your AutoCAD session, without saving and without any prompts and questions, you can use the following VisualLISP macro:
;Quit all drawings without saving (CAD Studio - www.cadforum.cz)
(vl-load-com)
(defun C:QuitAll ( / dwg)
 (vlax-for dwg (vla-get-Documents (vlax-get-acad-object))
  (if (= (vla-get-active dwg) :vlax-false)(vla-close dwg :vlax-false))
 )
 (command "._close" "_y")
)
Save this code to a LSP file (or download the ready-made QuitAll.lsp) and load it in AutoCAD using APPLOAD. The command QuitAll then closes all opened drawings and leaves AutoCAD in a "zero-doc" state. Please use this command carefully - all unsaved changes will be lost!

To quit multiple DWG drawings including optional save, use the Express Tools command QQUIT.

ACAD
100% *  CAD 
12.1.2011    9730x  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 11016:How to copy Revit custom colors to another PC?
Tip 10658:How to open a R/O DWG without the read-only warning?
Tip 10609:How to disable the Connected Design function (blue icon)?
Tip 10477:Stretched move, proportional object move in AutoCAD.
Tip 9877:How to get the outer dimension text closer to the extension line?


Back   All CAD Tips All CAD tips&tricks

How to move a ribbon tab in Revit? « | » AutoCAD no longer displays the Command: prompt.

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:
Track your time spent working on AutoCAD or Revit jobs - automatically with
CADstudio JobTime 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.
TOPlist