• 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

TALLYLEN LISP: Total Length or Area Across a Selection

August 3, 2026

Two commands that answer the two questions you ask a drawing most often. TALLYLEN totals the length of selected curves; TALLYAREA totals the area of selected closed objects.

What QuickTally does

Both results are formatted with rtos, so they honour the drawing’s LUNITS and LUPREC settings and read in the same units and precision as the rest of the drawing — no mental conversion between the answer and the sheet.

These commands only read the drawing. Nothing is created or modified, so neither opens an undo group and neither alters any system variable.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type TALLYLEN for length or TALLYAREA for area.
  3. Select the objects.
  4. Read the total at the command line.

How it works

One caveat on TALLYAREA is worth knowing before you trust a total. It reports the area each object encloses — and an open polyline still has a computable area, because AutoCAD treats it as though a closing segment ran from its last vertex back to its first.

So if a boundary was never properly closed, the figure returned is the area of that implied closure rather than an error. The number looks entirely reasonable and is measuring a shape that is not on the drawing.

That is not a fault in the routine — it is how AutoCAD reports area — but it is the reason a suspiciously plausible total is worth checking against a closed boundary.

Notes and limits

  • Check your boundaries are actually closed before trusting an area total.
  • Results are in drawing units, at the drawing’s own precision.
  • Nothing is modified, so there is no undo group and no system variable is touched.
  • For a live figure on the sheet, use AREASUM or AREATOTAG instead — these print once and are done.

Download and details

NameQuickTally — total length or area across a selection and print the result
DownloadQuickTally.lsp — 7.2 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandsTALLYAREA, TALLYLEN
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com).
Source size7.2 KB, 187 lines
Error handlingYes — a *error* handler restores every system variable it changed, on cancel as well as on error.
UndoNot needed — this routine only reads the drawing and changes nothing.
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

  • TAPE LISP — length totalling that reports degenerate objects separately
  • AREASUM LISP — a live field instead of a one-off figure
  • ZONE LISP — totals grouped by layer
  • 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