CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
New CADforum look launched.
Over 1.081.000 registered users (EN+CZ). New 1D nesting and 3D nesting tools, updated Color converter. New AutoCAD 2025 commands and variables. Learn about twiGIS.
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 7723:

Question

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

See also:
Tip 14192:MLfillet - how to fillet multilines in AutoCAD?
Tip 14033:Clipping blocks, images, curves, xrefs - everything, into any shape
Tip 14017:Voronoi diagrams in AutoCAD.
Tip 14007:Workaround for the missing (vlax-create-object) in AutoCAD LT (voice, clipboard, etc.)
Tip 13975:How to distinguish open tabs in Revit by project?


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:
Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit Tools 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