eplisp

LengthText.lsp

eplisp, the free multilingual LISP library

LengthText.lsp
The author does not allow redistribution; download the file from the author's own site.
…
Rate this tool:
CommandsLTXT
CategoryMeasuring and Totals
AuthorJimmy Bergmark (JTB World)
SourceJTB World
LicenseAuthor's terms of use
Version1.0
Updated2014-09-14
RequirementsAutoCAD (full version; uses Visual LISP/ActiveX). Supported versions are not stated on the page.
Prompt languageEnglish
Added2026-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

  1. Download LengthText.lsp from the author's page and load it with APPLOAD.
  2. Type LTXT at the command line.
  3. Select the object whose length you want.
  4. 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

  1. JTB World (author's page) – https://jtbworld.com/autocad-lengthtext-lsp
  2. Author: Jimmy Bergmark (JTB World) – https://jtbworld.com/
  3. 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