Homeโ€บ Blogโ€บ PLEN LISP: Calculate Length by Layer Free Download
๐Ÿ“ LISP

PLEN LISP: Calculate Length by Layer Free Download

๐Ÿงฎ 2  |  ๐ŸŸข 2
04 Mar 2026 Trishunya Team
PLEN LISP: Calculate Length by Layer Free Download
๐Ÿ“ LISP · CAD UTILITIES

PLEN LISP: Calculate Length by Layer (Free AutoLISP Download)

๐Ÿ“… 04 Mar 2026 ๐Ÿท๏ธ CAD BGBgol Global
PLEN AutoLISP routine, Calculate Length by Layer, shown inside a CAD window

PLEN selects a batch of lines/polylines, sums their length grouped by layer, and writes a simple text summary table into the drawing, replacing a slow, manual, layer-by-layer length tally.

PLLENTAB-bgol (Calculate Length by Layer)

CATEGORY
Polyline Lisps
COMMAND NAME
PLEN
LISP FILE
PLLENTAB-bgol.lsp
LICENSE
Open-source, free

Command Type: AutoLISP routine (works in AutoCAD, BricsCAD, ZWCAD and most AutoLISP-compatible CAD platforms)
Developed by: BGol Community, bgol.in

Inspired by the general concept of per-layer length summary utilities used in CAD/survey drafting. This is an original, independently written routine, new file name, new command name, new source code, created so the CAD community has a free, editable, open-source alternative.

Overview

PLEN selects a batch of lines/polylines, sums their length grouped by layer, and writes a simple text summary table into the drawing, replacing a slow, manual, layer-by-layer length tally.

How to Use

  1. Load PLLENTAB-bgol.lsp into your CAD session (drag-and-drop the file onto the drawing window, or use the APPLOAD command).
  2. Type PLEN at the command line and press Enter.
  3. Select the LINE and/or LWPOLYLINE entities you want totaled.
  4. Press Enter to finish the selection.
  5. Pick a point in the drawing for the results table.
  6. A text summary listing each layer name with its cumulative length, plus a grand total, is placed on layer BGOL-PLEN.

Why Use It

  • Time savings, automates a manual, layer-by-layer length tally.
  • Accuracy, removes human error from manual length summation.
  • Quantity takeoffs, per-layer totals are directly usable for material estimates, bill-of-quantities, or reporting.

Where to Use It

  • Producing quantity summaries for infrastructure networks (water pipe, drainage line, road length per category).
  • Bill-of-quantities preparation where linear measurements need to be totaled and reported by feature type.
  • Any CAD workflow needing a quick layer-grouped length summary instead of checking each entity individually.

Notes

  • Works on LINE and LWPOLYLINE entities; other entity types are ignored by the selection filter.
  • Lengths are summed using each entity's true curve length (via vlax-curve-getDistAtParam), so arc segments within a polyline are measured correctly, not approximated as straight chords.
  • The summary is written as plain TEXT rows for maximum compatibility; edit BGOL:PLEN-MakeText if you prefer a native TABLE entity instead.
  • Source code is fully open, feel free to study, modify, and redistribute it under the same open, free-for-all spirit.

Credits

Developed and shared for the CAD community by BGol Community. Website: https://bgol.in/ Free and open-source, use it, modify it, share it, for personal or commercial work alike.

Frequently Asked Questions

What CAD platforms does PLEN work on?

PLEN is a standard AutoLISP routine, so it runs in AutoCAD, BricsCAD, ZWCAD, and most other AutoLISP-compatible CAD platforms without modification.

What should I know before using PLEN?

Works on LINE and LWPOLYLINE entities; other entity types are ignored by the selection filter.

What is the main benefit of using PLEN?

Time savings, automates a manual, layer-by-layer length tally.

Is PLEN free to use for commercial projects?

Yes. PLEN is fully open-source and free to use, modify, and redistribute for both personal and commercial work, developed and shared by the BGol Community.

How do I load the PLEN command into my drawing?

Drag and drop PLLENTAB-bgol.lsp onto your open drawing window, or load it through the APPLOAD command, then type PLEN at the command line to run it.

๐Ÿค About BGol Community

BGol Community of Advanced Surveying builds and shares free, open-source tools for the survey and CAD drafting community.

๐Ÿ™Œ Made with โค๏ธ by BGol Community of Advanced Surveying

Free, open-source, and built for the CAD community, for personal or commercial use, always.

Back to all articles