LengthText.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 | LTXT |
|---|---|
| Category | Measuring and Totals |
| Author | Jimmy Bergmark (JTB World) |
| Source | JTB World |
| License | Author's terms of use |
| Version | 1.0 |
| Updated | 2014-09-14 |
| Requirements | AutoCAD (full version; uses Visual LISP/ActiveX). Supported versions are not stated on the page. |
| Prompt language | English |
| Added | 2026-10-26 |
| Go to the author's page ↗ | |
Places an MText field that shows the length or circumference of a selected object, formatted with the drawing's unit settings.
LengthText.lsp is a small AutoLISP program by Jimmy Bergmark (JTB World) that writes an object's length into the drawing as a field. It is for users who want a value linked to the object, instead of measuring and typing lengths by hand.
Overview
The LTXT command asks for an object and a text location. Any object with a length or circumference property is accepted; others are reported as not supported. The value uses the current unit settings and updates according to FIELDEVAL or the OPTIONS settings. The author notes that the code can easily be adapted to show other object properties.
How to use it
- Download LengthText.lsp from the author's page and load it with APPLOAD.
- Type LTXT at the command line.
- Select the object whose length you want.
- Pick the point for the text.
Notes and limitations
- Each run adds a new MText to the drawing.
- When the field updates depends on the FIELDEVAL system variable.
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.
Free to download, but the code header reserves all rights and no redistribution license is given, so we only link to it.
References
- JTB World (author's page) – https://jtbworld.com/autocad-lengthtext-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