LayoutsToDwgs.lsp
eplisp, the free multilingual LISP library
| The author does not allow redistribution; download the file from the author's own site. | |
… Rate this tool: | |
| Commands | LAYOUTSTODWGS |
|---|---|
| Category | Data Export (Excel, CSV) |
| Author | Jimmy Bergmark (JTB World) |
| Source | JTB World |
| License | Author's terms of use |
| Updated | 2016-10-26 |
| Requirements | AutoCAD (full version), 2000 and later |
| Prompt language | English |
| Added | 2026-10-26 |
| Go to the author's page ↗ | |
Saves each paper-space layout of the current drawing as its own DWG file in the drawing's folder, with an optional prefix and suffix in file names.
LayoutsToDwgs.lsp splits all layouts of a drawing into separate drawing files. It is meant for users who keep many sheets in one file and need to hand them over as individual DWGs.
Overview
Each file is named from a user-entered prefix, the layout name and a suffix, and is written to the folder of the current drawing. The Model tab and empty layouts are skipped. Before the WBLOCK step the program sets the UCS to World in model space, and it answers yes by default to exporting AutoCAD Map information.
According to the author's page, the code posted there is not the latest version; an improved version (JTB LayoutsToDwgs) is offered free on the Autodesk App Store and adds a SAVEAS option that keeps page setups and drawing properties.
How to use it
- Download the program from the author's page and load it into AutoCAD with APPLOAD.
- Save the drawing; the files are written to its folder.
- Type LAYOUTSTODWGS at the command line.
- Enter a prefix and suffix when asked; each layout is saved as its own DWG.
Notes and limitations
- Existing files with the same names may be overwritten; check the folder before running.
- According to the page, page setups, STB plot styles and custom drawing properties (DWGPROPS) are lost in the WBLOCK process.
- Model-space objects outside the viewports are not removed.
Source and license
This tool is not made by eplisp. The description on this page is written by us; get the file and its latest version from the author's page.
Published for free, but the code header reserves all rights and grants no redistribution licence, so we only link to it.
References
- JTB World (author's page) – https://jtbworld.com/autocad-export-layouts-to-drawings-layoutstodwgs-lsp
- Author: Jimmy Bergmark (JTB World) – https://jtbworld.com/
- License: Author's terms of use – https://jtbworld.com/autolisp-visual-lisp
Found a mistake, or are you the author of this tool? Request a correction or removal