Total Polyline Length
Calculate the combined length of selected 2D and legacy polylines.
CAD discipline
Find AutoLISP routines for plant and piping CAD work including pipeline lengths, equipment data, layers, routes, and drawing checks.
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
Calculate the combined length of selected 2D and legacy polylines.
Sum the area of selected closed polylines and skip open ones.
Renumber TEXT and MTEXT objects in the exact order you select them.
Add a fixed prefix to selected TEXT and MTEXT objects.
Report objects on Layer 0 or Defpoints and list locked, frozen, or off layers.
Append a fixed suffix to selected TEXT and MTEXT objects.
Count selected blocks by one chosen attribute value.
Create a WCS X/Y text label at a picked coordinate.
Convert selected TEXT and unformatted MTEXT to upper- or lowercase.
Select duplicate TEXT or MTEXT at matching insertion points.
Write a prefix and sequential number into a chosen block attribute.
Total selected route polylines and apply an optional allowance percentage.
Select objects on an existing named layer in the active model or paper-space layout.
Summarize selected polyline length totals grouped by layer.
Select same-name block references, including dynamic block references.
Export selected block names and attribute tag/value pairs to a CSV file.
Report distance along a selected polyline to a picked location.
Run CAD audit and one all-item purge pass only after explicit confirmation.
Summarize selected block references by name in the command line.
Set one positive height on selected TEXT and MTEXT objects.
Place a text label containing a selected closed polyline's area.
Preview and optionally delete unused, non-protected layers.
Report the 2D and 3D distance between two picked points.
Report clockwise azimuth from north between two picked points.
Replace matching text inside a deliberate selection of TEXT and MTEXT objects.
Move selected objects onto an existing layer with validation and no layer creation.
Related CAD automation