CADLisp Tools

task category

Geometry & Polylines AutoLISP tools and downloadable LISP routines

Download AutoLISP routines for polyline length, area, bearings, distance, chainage, and other CAD geometry calculations.

Each tool page includes its CAD command, readable source code, a direct .LSP download, setup instructions, a worked example, and known limitations.

Download and review

5 Geometry & Polylines routines

Search the full AutoLISP library →
Geometry & Polylines6 disciplines

Total Polyline Length

Calculate the combined length of selected 2D and legacy polylines.

⌘ TOTPLENBeginnerCAD support: not tested
Updated Sep 18, 2026VIEW TOOL →
Geometry & Polylines6 disciplines

Closed Polyline Area

Sum the area of selected closed polylines and skip open ones.

⌘ CLOSEDARIntermediateCAD support: not tested
Updated Sep 18, 2026VIEW TOOL →
Geometry & Polylines4 disciplines

Station/Chainage Along Polyline

Report distance along a selected polyline to a picked location.

⌘ CHAINAGEIntermediateCAD support: not tested
Updated Sep 18, 2026VIEW TOOL →
Geometry & Polylines6 disciplines

Distance Between Points

Report the 2D and 3D distance between two picked points.

⌘ PTDISTBeginnerCAD support: not tested
Updated Sep 18, 2026VIEW TOOL →
Geometry & Polylines3 disciplines

Bearing Between Points

Report clockwise azimuth from north between two picked points.

⌘ PTBEARINGIntermediateCAD support: not tested
Updated Sep 18, 2026VIEW TOOL →