[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Standardize When You Save and Close
Tip# 4521 By James Sturgess On 17-Aug-2015
Rated By 1 users Downloaded : 118
Categories : Saving Files
Software type : AutoCAD 2016
Rename File To : SaC.LSP
This AutoLISP routine ensures all drawings are saved with layout tabs and model space zoomed to extents.

James uses his contribution here to ensure his drawings are saved with all layout tabs and model space zoomed to extents.  It can be easily modified to do anything that needs to be repeated on each layout, such as filling in title blocks or revision blocks. After you load the LISP file, the type in command is SaC. Since this is something you'll want to use all the time, you'll want to make sure this LISP file is loaded all the time, and you'll probably want to put the SaC command in a button or maybe even rename it to QS (or whatever your normal routine for saving a drawing today is). A similar tip is #3656, which does not perform the Zoom Extents in each layout.


Average Rating:

User comments
Comment by Houston,Alan
Posted on 2015-08-18 05:04:50
A better method may be to use Setvar "CTAB" rather than Command "layout" method. (foreach d (layoutlist) (setvar "CTAB" d). Filling in title blocks requires way more code you must interrogate the correct block on each layout and update the correct attribute value. Around 20+ layout programs.

Log In