CAD FORUM - TIPS & TRICKS | UTILITIES | DISCUSSION | BLOCKS | SUPPORT | HELP & ASSISTANCE
Over 1.121.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
The new Beam calculator, Spirograph generator and Regression curves in the Converters section.
New AutoCAD 2027 commands and sys.variables
CAD tip # 7723:
Question
A
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
12.1.2011
31830×
this tip shared by ARKANCE experts applies to: AutoCAD ·
![CAD Forum - ARKANCE Community - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

What is the ARKANCE Community?