A typed area figure is out of date the moment somebody stretches a boundary. AREASUM writes a live field instead — select any number of closed objects, pick a point, and the total appears as text that updates itself whenever the geometry changes.
What AreaSumField does
Select the objects, pick a point, and an MText field is created there showing their combined area. Stretch one of the boundaries and the figure follows on the next regeneration. Nothing has to be remembered and nothing has to be retyped.
Pick inside a table cell and it fills the cell. If the point you pick falls inside an AutoCAD table cell, the field goes into that cell rather than being created as loose MText floating on top of the table. That one behaviour is what makes this directly usable for building an areas schedule by hand, cell by cell.
How to use it
- Load the routine with
APPLOAD, or put it on your support file search path. - Type
AREASUM. - Select the closed objects whose areas you want totalled.
- Pick a point for the result. If that point is inside a table cell, the field goes into the cell instead.
How it works
For a single object the field is a straightforward object-property reference to its Area — the same thing you would get from the Insert Field dialog, without the dialog.
For several objects an arithmetic expression field is built that adds the areas together: literally area of A + area of B + area of C, expressed in field syntax. The whole sum is then formatted once at the end rather than each term being formatted and the results concatenated, which is what keeps the displayed figure consistent.
The formatting is controlled by AreaSumField:Format near the top of the file. Two codes do the work:
%lu6 — linear units in decimal format.%qf1 — suppress trailing zeros.
Edit it to suit your output. %lu6%pr2, for instance, forces two decimal places instead of trimming them. The quickest way to discover the code you want is to build a field you like the look of through the normal dialog and then run FIELDCODE on it — it reports the formatting string, which you can paste straight in.
Notes and limits
- The objects must be closed for AutoCAD to report an area at all. Open polylines have no area to reference.
- Fields update on regeneration, governed by
FIELDEVALandFIELDDISPLAY. If a figure looks stale, aREGENwill settle it. - Deleting a referenced object breaks its part of the sum. The field shows
####where the missing reference was. - The result is in drawing units squared. Millimetre drawings report square millimetres; convert in the format code or schedule with
AREATABLE, which has a conversion factor.
Download and details
| Name | AreaSumField — a live field showing the combined area of several objects |
| Download | AreaSumField.lsp — 10.3 KB, plain AutoLISP source. Downloads directly; no zip to unpack. |
| Type | AutoCAD AutoLISP routine |
| Command | AREASUM |
| Requires | the ActiveX layer (loaded automatically by the routine with vl-load-com). |
| Source size | 10.3 KB, 261 lines |
| Error handling | Yes — a *error* handler restores every system variable it changed, on cancel as well as on error. |
| Undo | The whole operation is wrapped in a single undo group, so one U reverses all of it. |
| Compatibility | AutoCAD (any release with AutoLISP), BricsCAD, ZWCAD, GstarCAD, ProgeCAD and other IntelliCAD-based platforms. AutoCAD LT needs a LISP enabler. No .NET, no ObjectARX, no installer. |
| Author | YZ, August 2026 |
| Licence | Free to use, supplied “as is” with no warranty. |
References
- AREATABLE LISP — number areas and build the whole schedule
- AREATOTAG LISP — push an area field into a block attribute
- FIELDSNOOP LISP — report the formatting code of any existing field
- More free AutoLISP routines on this site
- Wisey’s Steel Shapes — free structural steel section drawing program