eplisp

Areas to Field

eplisp, the free multilingual LISP library

Areas to Field
The author does not allow redistribution; download the file from the author's own site.
…
Rate this tool:
CommandsA2F
CategoryMeasuring and Totals
AuthorLee Mac
SourceLee Mac Programming
LicenseAuthor's terms of use
Version1.3
RequirementsAutoCAD (full version); the author lists it as AutoCAD LT compatible (LT runs LISP from release 2024). Not for AutoCAD for Mac.
Prompt languageEnglish
Added2026-10-26
Go to the author's page ↗

Creates an MText with a field showing the area, or the summed area, of selected objects, so the value updates whenever the geometry changes.

Areas to Field is a short AutoLISP program by Lee Mac that keeps area labels linked to the drawing. It suits users who label rooms, plots or hatched regions with text and would otherwise retype the value after every edit.

Overview

The A2F command first asks for objects. If several objects are selected, the resulting field expression shows the sum of their areas. It then asks for an insertion point; if the point falls inside an AutoCAD table cell, the field is written into that cell instead.

Units and precision come from a field format code near the top of the source. The author explains how to set the format in the FIELD dialog, read the code with his Field Formatting Code tool, and paste it into the program.

How to use it

  1. Download the LSP file from the author's page and load it in AutoCAD with APPLOAD.
  2. Type A2F at the command line.
  3. Select one or more closed objects whose area you need.
  4. Pick the insertion point for the text, or click inside a table cell to fill it.

Notes and limitations

  • Because the value is a field, it refreshes whenever AutoCAD updates fields; no retyping is needed.
  • To use a different unit or precision you must edit the format line in the source code.

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 or in-house use; redistribution needs the author's written consent, so we do not host the file and link to the author's page instead.

References

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