CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 7418

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    11624×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 13977:How to publish a PDF to the same folder as a DWG drawing in AutoCAD?
Tip 13740:Dynamic label with filesize of the current DWG file.
Tip 13522:LookupXLS - populating DWG texts from Excel spreadsheets.
Tip 13307:How to teach AutoCAD Web app a new command?
Tip 11898:Automatic schedule - number of blocks in a drawing.


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   



Featuring:
DwgTextTranslator translates a series of drawings from one language to another using MS Access.
Download a fully functional trial version.


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist