• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
blog.draftsperson.net

blog.draftsperson.net

the art of technical drawing

blog.draftsperson.net

SUMAREA LISP: Live Net Area Field With Subtraction

August 3, 2026

SUMAREA creates a live field totalling the length or area of selected objects, with the option to subtract a second selection.

What SumField does

The subtraction is what makes this more than a running total. Select the outline of a room, then select the columns and voids inside it, and the field reports the net floor area. Edit any of the boundaries and the figure follows.

Four commands. SUMLENGTH and SUMAREA work in drawing units. SUMLENGTHMM converts millimetres to metres; SUMAREAMM converts square millimetres to square metres.

The two converting commands exist for a reason. Drawings are routinely modelled in millimetres while schedules are wanted in metres — and doing that conversion in your head, forty times, is where mistakes come from.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type SUMAREA, or SUMAREAMM for a metric conversion.
  3. Select the boundaries to add.
  4. Select anything to subtract — columns, voids, openings.
  5. Pick a point for new MText, click a table cell to fill it, or choose Object to write into existing text, an attribute or a multileader.

How it works

Where a block or multileader carries several attributes you are asked which one. Set the tag argument in a command definition to skip that prompt.

Making your own variants is a matter of copying a command definition at the foot of the file. The three arguments are the target attribute tag — nil to be asked — whether to offer a subtraction prompt, and the field formatting code. A square-metre command that always writes into a tag called AREA is one line.

Notes and limits

  • Open objects still have an area. AutoCAD treats an unclosed boundary as though a straight line joined its two ends, so a boundary that was never properly closed returns the area of that implied closure rather than an error. Worth checking before trusting a total.
  • Use the MM commands on millimetre drawings. That is what they are for.
  • Deleting a referenced object breaks the field, which shows ####.
  • Fields update on regeneration, governed by FIELDEVAL.

Download and details

NameSumField — a live field totalling length or area, with subtraction
DownloadSumField.lsp — 26.8 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandsSUMAREA, SUMAREAMM, SUMLENGTH, SUMLENGTHMM
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com); nothing extra — the dialog is written to a temporary file at run time and deleted again, so there is no .dcl to install.
Source size26.8 KB, 639 lines
Error handlingYes — a *error* handler restores every system variable it changed, on cancel as well as on error.
UndoThe whole operation is wrapped in a single undo group, so one U reverses all of it.
CompatibilityAutoCAD (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.
AuthorYZ, August 2026
LicenceFree to use, supplied “as is” with no warranty.

References

  • AREASUM LISP — a live area total without the subtraction step
  • AREATABLE LISP — number areas and build the whole schedule
  • FIELDMATH LISP — arbitrary live calculations from drawing values
  • More free AutoLISP routines on this site
  • Wisey’s Steel Shapes — free structural steel section drawing program

Filed Under: AutoLISP Routines

Primary Sidebar

Subscribe to our Youtube Channel

Post CAD drafting jobs on Freelancer.com. and get some free money to do this.

Categories

  • American Steel Industry (4)
  • AutoCAD Articles & Reference (30)
  • AutoCAD Bugs & Problems (19)
  • AutoCAD Tips (29)
  • AutoCAD Tutorials (54)
  • AutoLISP Routines (328)
  • AutoLISP Tutorials (15)
  • CAD Standards (7)
  • Civil 3D (7)
  • Civil Drafting (4)
  • Dimensions (2)
  • Drafting Funnies (71)
  • Drafting History (9)
  • Drafting Standards (84)
  • Electrical Drafting (2)
  • General IT reference (7)
  • Geometry (15)
  • GIS (2)
  • Hatch Patterns (12)
  • Office Life Hacks (3)
  • PT (1)
  • Revit Tutorials (54)
  • Steel Detailing (14)
  • Structural Drafting (26)
  • Technical Dictionary (61)
  • Useful Website Links (19)

Footer

Free downloads

  • Free AutoLISP routines
  • Free hatch patterns
  • SHX fonts & text styles
  • Numbering LISP collection
  • ISO 3098B font

Reference charts

  • AWS weld symbols chart
  • Steel detailing chart
  • Hole & slot sizes
  • Bolt edge distance
  • ANSI & ARCH paper sizes
  • How to fold an A1 drawing

Useful links

  • CAD blocks (DWG)
  • Revit families
  • structuraldrafter.com
  • cad-corner.com
  • About
  • Privacy policy

Provided for free with no warranty · Log in