A small but growing AutoLISP utility for renaming layout tabs based on title block attributes.
- Read block attributes from layouts (e.g., sheet number/title) and rename layouts accordingly
- Batch command to update all layouts at once (since v0.2.0)
- Modular
src/
structure with versioned releases - CI checks for Markdown and EditorConfig compliance
- Conventional Commits + semantic versioning
- Example files and tests scaffolding
- Clone or download this repository.
- In AutoCAD, run
APPLOAD
, browse tosrc/RenameLayouts.lsp
, and load it.
Alternatively, add the folder to your AutoCAD support file search path and use:(load "UpdateLayouts.lsp")
This project exposes one or more commands/functions to rename layouts based on your title block attributes.
Open src/RenameLayouts.lsp
to see available commands (look for any C:<CommandName>
definitions). Common patterns:
; Example invocation once loaded:
; (c:RenameLayouts) ; if defined
; (c:MatchLayoutNameToSheet) ; if defined in your script
Tip: If your title block uses specific attribute tags, adjust the constants in the script or extend the helper functions accordingly.
.github/
ISSUE_TEMPLATE/
bug_report.md
feature_request.md
workflows/
ci.yml
docs/
examples/
src/
UpdateLayouts.lsp
tests/
.editorconfig
.gitignore
CHANGELOG.md
CONTRIBUTING.md
LICENSE
README.md
pre-commit-config.yaml
- Edit AutoLISP in Visual Studio Code with the AutoLISP extension (Autodesk) for syntax highlighting and lint-like feedback.
- Use Conventional Commits for messages (e.g.,
feat: add multi-line title support
). - Open issues with clear reproduction steps; submit PRs with a short demo GIF if possible.
- Create a GitHub Release with notes pulled from
CHANGELOG.md
- Robust attribute reader with error handling
- Support multiple title lines (e.g.,
TITLE1
,TITLE2
) - Config file for block name + attribute tags
- Dry-run and verbose logging
- Batch processing for multiple drawings
MIT © 2025 Tommy Lee