eplisp

Total Length (TLEN)

eplisp, the free multilingual LISP library

Total Length (TLEN)
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsTLEN
CategoryMeasuring and Totals
AuthorMichael Flynn
Sourcemf4633/C3D-AutoCAD
LicenseMIT
Version1.2
Updated2026-07-07
RequirementsAutoCAD (full version, not LT). Uses ActiveX (vla/vlax), so it should also run in Visual LISP-compatible programs such as BricsCAD.
Prompt languageEnglish
Filestotallength.lsp (2 KB)
Added2026-10-26
Download the original fileSource repository

Adds up the true length of selected lines, polylines, arcs, circles, ellipses and splines, and prints the total in drawing units and in miles.

TLEN is a length-summing command from Michael Flynn's Civil 3D/AutoCAD routine collection. It gives the total length of routes drawn in many pieces, such as pipe runs, cables or boundaries, from a single selection.

Overview

LINE, LWPOLYLINE, POLYLINE, ARC, CIRCLE, ELLIPSE and SPLINE objects can be selected. Each object is measured with the vlax-curve functions from the start to the end of the curve, so polylines with arcs, ellipses and splines are measured correctly. The command line shows the total with two decimals and, in parentheses, the value divided by 5280 as miles. Nothing in the drawing is changed.

How to use it

  1. Load totallength.lsp with APPLOAD.
  2. Type TLEN at the command line.
  3. Select the objects to measure and press Enter.
  4. Read the total length on the command line.

Notes and limitations

  • The miles figure assumes the drawing unit is feet; in metric drawings use only the first number.
  • Circles contribute their full circumference.
  • The repository is new (2026); test the routine on a copy of the drawing first.

Source and license

This tool is not made by eplisp. The file is published unchanged under its author's license; copyright stays with the author.

References

  1. Source repository: mf4633/C3D-AutoCAD – https://github.com/mf4633/C3D-AutoCAD/tree/eeeda7b7b3ffe98917d4b2b3d329d6b84a966035
  2. Author: Michael Flynn – https://github.com/mf4633
  3. License: MIT – https://github.com/mf4633/C3D-AutoCAD/blob/eeeda7b7b3ffe98917d4b2b3d329d6b84a966035/LICENSE

Found a mistake, or are you the author of this tool? Request a correction or removal