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: 19717

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.6) 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 LastMachine and set it to the last user's computer name, IP address or computer UUID
  • 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 Download. There you can get also the Authorization code required for advanced functionality of PreSave.

ACAD
100% *  CAD 
18.1.2010    13563×  
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 13868:XrefStamp - create a dynamic list of xrefs in your DWG drawing.
Tip 13529:How to redefine the behavior of a standard AutoCAD command?
Tip 13014:StickLay - unchangable, fixed layers for selected DWG objects.
Tip 11780:How to rename layouts by a specific attribute of the title block?


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:
Simply link AutoCAD LT blocks to Excel table data.
Excellink LT 2006 More info


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