eplisp

Length at Midpoint

eplisp, the free multilingual LISP library

Length at Midpoint
The author does not allow redistribution; download the file from the author's own site.
…
Rate this tool:
CommandsMIDLEN
CategoryMeasuring and Totals
AuthorLee Mac
SourceLee Mac Programming
LicenseAuthor's terms of use
Version1.1
RequirementsAutoCAD (full version) or AutoCAD LT 2024 and later; not supported on AutoCAD for Mac
Prompt languageEnglish
Added2026-10-26
Go to the author's page ↗

Labels each selected object with its length by placing an aligned MText at its midpoint that holds a length field, which updates with the geometry.

Length at Midpoint adds an MText showing the object's length at the midpoint of each selected line, arc, circle or polyline. It helps anyone who wants to label many run, wall or cable lengths at once instead of measuring and typing each value.

Overview

Each MText contains a field expression tied to the object's length, so the value can update when the object changes. The text is aligned with the object while staying readable, has a background mask enabled, and uses the current text style and text height. The program works under any UCS and view setting.

The length format can be changed by editing the field formatting code near the top of the source file; the author explains the steps on the page.

How to use it

  1. Download the program from the author's page and load it into AutoCAD with APPLOAD.
  2. Type MIDLEN at the command line.
  3. Select the objects to label; a label is added at the midpoint of each one.

Notes and limitations

  • The program adds new MText objects to the drawing.
  • Whether fields are shown with a gray background depends on the FIELDDISPLAY 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 for personal and in-house use; redistribution needs the author's written consent, so we do not host the file and only link to the author's page.

References

  1. Lee Mac Programming (author's page) – https://www.lee-mac.com/midlen.html
  2. Author: Lee Mac – https://www.lee-mac.com/
  3. License: Author's terms of use – https://www.lee-mac.com/terms.html

Found a mistake, or are you the author of this tool? Request a correction or removal