eplisp

Length & Area Field

eplisp, the free multilingual LISP library

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

Creates a field showing the total length or area of selected objects, so the value updates when the geometry changes.

Length & Area Field is a two-command AutoLISP program by Lee Mac: LF builds a field expression for the summed length of selected objects, and AF does the same for area. It suits users who want length and area labels that no longer need manual updating.

Overview

LF accepts lines, arcs, circles and 2D or 3D polylines; AF also accepts ellipses, hatches, regions and splines. An optional second selection subtracts lengths or areas from the total. The area of an open object is computed as if a straight line joined its ends.

The result can be placed as new MText, inserted into a table cell, or written into existing text, MText, a multileader or an attribute. The formatting code and extra commands are defined at the top of the file; sample LFM and AFM commands that convert mm to m are included.

How to use it

  1. Download the .lsp file from the author's page and load it into AutoCAD with APPLOAD.
  2. Type LF for length or AF for area.
  3. Select the objects to add, then optionally the objects to subtract.
  4. Pick a point or table cell for the field, or use the Object option to fill existing text.

Notes and limitations

  • The Object option replaces the content of the chosen text or attribute with the field.
  • To change format or unit conversion you edit the command definitions at the top of the file.

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.

The author allows free use for yourself or within your organization; redistribution needs written consent, so we only link to the author's page.

References

  1. Lee Mac Programming (author's page) – https://www.lee-mac.com/lengthfield.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