PJ – Convert Lines to Polylines (Free AutoCAD LISP)

11th August 2026

FREE AUTOCAD LISP

PJ — lines in, joined polylines out

Select any number of LINE entities and PJ converts them to polylines and joins everything that touches — one command instead of the PEDIT → Multiple → Join ritual.

The classic first step before anything that needs closed or continuous polylines: area measurement, offsets, extrusions, CNC export.

PJ free AutoCAD LISP converting selected lines into joined polylines

How to use it

  1. Unzip, then load the .lsp with APPLOAD.
  2. Type PJ.
  3. Select the lines. It reports how many were converted.

Good to know

Works on LINE entities – joined where endpoints touch (exact join, zero fuzz)
Output Polylines; your PEDIT settings are restored afterwards
Command PJ

Take it further — measure and split areas automatically

Area Measure for AutoCAD - product boxArea Measure add-on numbering AutoCAD polygons and inserting a totalled area table

Area Measure
Measure closed shapes in any unit, number them, and get a totalled area table – annotative text supported.

See Area Measure — $21.90

Divide Area for AutoCAD - product boxDivide Area add-on slicing an AutoCAD shape into equal strips

Divide Area
Split any closed shape into pieces of equal area – by number, by distance, a set area or a free cut.

See Divide Area — $21.90

Voronoi Generator for AutoCAD - product boxVoronoi Generator filling a closed AutoCAD polyline with organic cells

Voronoi Generator
Fill any closed polyline with Voronoi cells – exact spacing, edge distance and rounding, live preview.

See Voronoi Generator — $24.90

This tool is part of our free AutoCAD LISP collection — 20+ routines, all free, all tested on real projects.