Total Length (TLEN)
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | TLEN |
|---|---|
| Category | Measuring and Totals |
| Author | Michael Flynn |
| Source | mf4633/C3D-AutoCAD |
| License | MIT |
| Version | 1.2 |
| Updated | 2026-07-07 |
| Requirements | AutoCAD (full version, not LT). Uses ActiveX (vla/vlax), so it should also run in Visual LISP-compatible programs such as BricsCAD. |
| Prompt language | English |
| Files | totallength.lsp (2 KB) |
| Added | 2026-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
- Load totallength.lsp with APPLOAD.
- Type TLEN at the command line.
- Select the objects to measure and press Enter.
- 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.
- totallength.lsp (2 KB)
- License text
References
- Source repository: mf4633/C3D-AutoCAD – https://github.com/mf4633/C3D-AutoCAD/tree/eeeda7b7b3ffe98917d4b2b3d329d6b84a966035
- Author: Michael Flynn – https://github.com/mf4633
- 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