AreaText.lsp
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 | ATATCATM |
|---|---|
| Category | Measuring and Totals |
| Author | Jimmy Bergmark (JTB World) |
| Source | JTB World |
| License | Author's terms of use |
| Version | 4.0 |
| Updated | 2018-11-11 |
| Requirements | AutoCAD (full version, Visual LISP); works in model and paper space. The page names no specific version limits. |
| Prompt language | English |
| Added | 2026-10-26 |
| Go to the author's page ↗ | |
Writes an MText field showing a selected polyline's area; ATC centres it on the object, and ATM labels several objects and reports their total area.
AreaText.lsp is a free AutoLISP program by Jimmy Bergmark (JTB World) that keeps area labels linked to the drawing. Because the label is created as an AutoCAD field, the value can update when the closed shape changes, without retyping.
Overview
The AT command asks you to select a polyline and pick a location for the text. ATC places the same label at the geometric centre of the selected object. ATM works on several objects: it places the text at the centre of their bounding box, runs AREA on each one and prints the total area.
The default format is square feet (SQ. FT.), and a commented-out square metre formula is included in the code. Text height comes from the TEXTSIZE system variable. The author links to guides on changing the format and justification or showing perimeter or length instead.
How to use it
- Download AreaText.lsp from the author's page and load it with APPLOAD.
- Type AT for a single label, ATC to centre it on the object, or ATM for several objects.
- Select the polyline (or objects for ATM) and pick the text location if asked.
Notes and limitations
- The default unit is square feet; for square metres you must enable the alternative formula given in the code.
- The field refreshes according to the FIELDEVAL setting or the field update options in the OPTIONS dialog.
- Changes such as rounding require editing the 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 to download and learn from; the code carries a JTB World all-rights-reserved notice and no redistribution grant, so we only link to it.
References
- JTB World (author's page) – https://jtbworld.com/autocad-areatext-lsp
- Author: Jimmy Bergmark (JTB World) – https://jtbworld.com/
- 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