CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 7696 
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 7169:

Question CAD 
 %  platform  category 
Q - question

PreSave reactor - automatic operations on drawing save.

A - answer Often you would need to add an automatic process to your DWG drawing file save operation - e.g. to save the drawing without unnecessary block definitions (Purge), with the modelspace active, and/or with the thumbnail preview covering the whole drawing.

In such situations you can use the automatic save reactor CADstudio PreSave. After you load it (APPLOAD, ACADDOC.LSP), all standard drawing saves (OnSave, using a command, keyboard shortcut, closing the window or closing AutoCAD) will be automatically preceded by the selected preset operations. The reactor parameters can be set with the PRESAVE command (dialog). You can also define other, custom actions performed before save (e.g. saving an older version copy or an extract from the saved DWG, update title blocks, unload some images, etc.). All settings are stored in the Registry - so they are valid for all drawings and all sessions.

PreSave dialog

The currently (V1.5) defined internal actions include:
  • Zoom extents
  • Set layer to "0"
  • Switch to the Model tab
  • Perform Purge (repeated)
  • Save a PNG preview image to the drawing folder
  • Set the property Author to the current user's login name
  • Create/Update the custom property LastACADver with your AutoCAD version - in the format e.g.:
    AutoCAD 2016 – English: M.107.0.0 (UNICODE)

You can download the CADstudio PreSave utility from There you can get also the Authorization code required for advanced functionality of PreSave.

100% *  CAD 
18.1.2010    7392×  
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 9514:Automatically set the Author property in DWG files.
Tip 9428:Save DWG drawing automatically after every N commands.
Tip 8778:How not lose edited DWG drawing even when closed without saving.
Tip 7503:Autodesk 3ds Max keyboard shortcuts.

Back   All CAD Tips All CAD tips&tricks

How to set a fixed size for a drawing window? « | » Search CAD blocks directly in Windows 7 Search.

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   

Save your floating licenses (NLS) consumed by inactive users - free unused licenses with
LogOff 2006 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.