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

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:

(acad-push-dbmod)
_Zoom _E
(acad-pop-dbmod)
_Close
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.

ACAD
100% *  CAD 
10.1.2012    3822x  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
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.
Tip 8998:How to make saving to older versions of DWG (SAVEAS) faster?
Tip 8867:Changes of a ladder are not saved in the DWG.


Back   All CAD Tips All CAD tips&tricks

My associative dimensions are not being updated. « | » How to color 3D topo surface model by elevation?

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