CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 3624

CAD tip CAD tip # 8408:

Question CAD 
 %  platform  category 
Q - question

How to avoid save prompt after zooming or other operations?

A - answer Any modification of the drawing database, including changing system variables, results in the save prompt when you close the drawing. Such changes can be even triggered by your automatically loaded LISP routines - in this case exiting any drawing would invoke the dialog "Do you want to save?".

This AutoCAD behaviour is controlled by the DBMOD variable. This variable is reset by SAVE and set by any change in the drawing. Please note that even a zoom or pan changes system variables stored in your DWG - and so sets the DBMOD. If DBMOD>0 on close, the save prompt is displayed.

There is a method to reset the DBMOD value without saving so you can avoid the Save prompt.

You can save (push) the DBMOD status - especially the zero status - with the (acad-push-dbmod) function. Then you can perform any operation (zoom, edit, create...). After it the function (acad-pop-dbmod) resets the DBMOD value to the original (pushed) value - e.g. 0. Close will NOT invoke the save prompt in this case.

E.g. a script:

_Zoom _E
will complete without prompts.

You can also use this method if you are changing some system variables in your ACADDOC.LSP and you don't want to make all your drawings automatically "dirty" - subject to the save prompts.

100% *  CAD 
10.1.2012    7388×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 11898:Automatic schedule - number of blocks in a drawing.
Tip 11604:How to set plot transparency for all layouts in a DWG?
Tip 10702:How to find which AutoCAD version was used to save a particular DWG drawing?
Tip 9685:DWG thumbnail is not displayed with some files. Why?
Tip 9516:Automating properties in DWG drawings - hidden gem in Express Tools.

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   

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