LineShell
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | LINESHELL |
|---|---|
| Category | Polyline Tools |
| Author | Franklin Rodriguez |
| Source | cyberec20/LineShell_Lsp |
| License | GPL-3.0 |
| Updated | 2025-07 |
| Requirements | AutoCAD (full version, not LT); uses ActiveX plus the PEDIT and -BLOCK commands. |
| Prompt language | Spanish |
| Files | LineShell.lsp (15 KB) |
| Added | 2026-10-26 |
| Download the original fileSource repository | |
LINESHELL offsets centerlines to both sides, closes the ends, joins them into a closed polyline, can hatch it and can make a block of the result.
LineShell, written by Franklin Rodriguez, is an AutoLISP routine that builds a closed outline from a centerline. For channels, walls, ducts or pipes that run along an axis at a set width, it combines offset, close, join and hatch into one command.
Overview
Each selected LINE or LWPOLYLINE is offset to both sides by the distance you enter. If the centerline is open, the gaps at both ends are closed with lines and the four pieces are joined with PEDIT into one closed polyline. The new objects go on the current layer in cyan, and the original centerline is moved to layer Defpoints. You can then hatch the closed outlines with SOLID, ANSI31, ANSI37, NET or ANGLE, and optionally turn all the new objects into a block definition. Prompts are in Spanish.
How to use it
- Load LineShell.lsp with APPLOAD.
- Type LINESHELL at the command line.
- Select the lines or polylines to use as centerlines and press Enter.
- Enter the offset distance from the centerline to one side.
- Answer Sí or No to the hatch prompt; with Sí, choose the pattern.
- If you answer Sí to the block prompt, type a block name and pick the base point.
Notes and limitations
- The original centerlines are moved to layer Defpoints (non-plotting). If Defpoints does not exist it is created in grey with the DASHED linetype; if DASHED is not loaded the command can stop with an error, so load it with LINETYPE first.
- The block option uses -BLOCK: the new objects are removed from the drawing into the block definition and the block is not reinserted; place it yourself with INSERT.
- For closed polylines two offsets are created, but they are not joined or hatched.
- Hatches are always added to model space, so do not use it in paper space. The colour of new objects is always forced to cyan.
- The command runs inside one UNDO group. The license is GPL-3.0; if you distribute modified copies, they must use the same license.
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.
- LineShell.lsp (15 KB)
- License text
References
- Source repository: cyberec20/LineShell_Lsp – https://github.com/cyberec20/LineShell_Lsp
- Author: Franklin Rodriguez – https://github.com/cyberec20
- License: GPL-3.0 – https://github.com/cyberec20/LineShell_Lsp/blob/d48a37955972e32974147295a5f01db68c042034/LICENSE
Found a mistake, or are you the author of this tool? Request a correction or removal