Rename Layouts from Title Block Attributes
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | UPDATELAYOUTS |
|---|---|
| Category | Plotting |
| Author | Tommy Lee |
| Source | tommylee0923/autocad-update-layout-name |
| License | MIT |
| Version | 0.3.0 |
| Updated | 2025-09-20 |
| Requirements | AutoCAD (full version, not LT), BricsCAD; no Express Tools needed. |
| Prompt language | English |
| Files | UpdateLayouts.lsp (10 KB) |
| Added | 2026-10-26 |
| Download the original fileSource repository | |
UPDATELAYOUTS renames each layout tab to the sheet number and title read from attributes of the title block placed on that layout, for one or all layouts.
UPDATELAYOUTS, written by Tommy Lee, keeps layout tab names in step with the title block. In multi-sheet projects, typing layout names by hand takes time and leads to mismatches with the title block; this tool builds the names straight from title block attributes.
Overview
Three settings sit at the top of the file: the title block name (*TB_BLOCK_NAME*), the sheet number attribute tag (*SHEET_TAG*) and the list of title line tags (*TITLE_TAGS*). When run, the command lets you choose the current layout or all layouts. On each layout it finds the first block with that name (dynamic blocks included), joins 'sheet number + title lines' into a new name and applies it. If another layout already has that name, or the name is invalid, the layout is skipped and a message is shown.
How to use it
- Open UpdateLayouts.lsp in a text editor and set *TB_BLOCK_NAME*, *SHEET_TAG* and *TITLE_TAGS* to match your title block.
- Load the file with APPLOAD.
- Type UPDATELAYOUTS at the command line.
- Choose All for every layout or Current for the active one (default All).
Notes and limitations
- You must edit the block and tag names in the file before use; the defaults are placeholders and will not match your title block.
- Names containing characters not allowed in layout names (< > / \ " : ; ? * | , = `) cannot be applied; an error message is shown for that layout.
- One title block per layout is assumed; if there are several, the first one found is used.
- With All, the Model tab is also scanned and may print a harmless 'could not find' message.
- Loading the file defines global variables and global helper functions such as _trim and _compare, which may clash with other LISP files using the same names.
- License: the repository's LICENSE file is MIT.
Source and license
This tool is not made by eplisp. The file is published unchanged under its author's license; copyright stays with the author.
- UpdateLayouts.lsp (10 KB)
- License text
References
- Source repository: tommylee0923/autocad-update-layout-name – https://github.com/tommylee0923/autocad-update-layout-name/tree/1643ea74d986a4f0e15c75256d785d9030139661/src
- Author: Tommy Lee – https://github.com/tommylee0923
- License: MIT – https://github.com/tommylee0923/autocad-update-layout-name/blob/1643ea74d986a4f0e15c75256d785d9030139661/LICENSE
Found a mistake, or are you the author of this tool? Request a correction or removal