Areas to Field
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 | A2F |
|---|---|
| Category | Measuring and Totals |
| Author | Lee Mac |
| Source | Lee Mac Programming |
| License | Author's terms of use |
| Version | 1.3 |
| Requirements | AutoCAD (full version); the author lists it as AutoCAD LT compatible (LT runs LISP from release 2024). Not for AutoCAD for Mac. |
| Prompt language | English |
| Added | 2026-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
- Download the LSP file from the author's page and load it in AutoCAD with APPLOAD.
- Type A2F at the command line.
- Select one or more closed objects whose area you need.
- 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
- Lee Mac Programming (author's page) – https://www.lee-mac.com/areastofield.html
- Author: Lee Mac – https://www.lee-mac.com/
- 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