LEGEND – Automatic Legend from Your Layers (Free AutoCAD LISP)

11th August 2026

FREE AUTOCAD LISP

LEGEND — the drawing’s legend, built from what you select

Select the objects that should be explained and LEGEND builds the legend for you — one row per layer / linetype / colour combination found in the selection, drawn with a sample line and the layer’s name.

Text height follows your current style — annotative styles scale with the annotation scale, plain styles follow LTSCALE — so the legend lands at drawing-appropriate size in model or paper space.

LEGEND free AutoCAD LISP building an automatic layer legend from a selection

How to use it

  1. Unzip, then load the .lsp with APPLOAD.
  2. Type LEGEND.
  3. Select the objects to include – duplicates collapse to one row each.
  4. Pick where the legend goes.

Good to know

Rows One per layer + linetype + colour combination in your selection
Text Current text style; annotative styles fully supported
Space Works in model space and paper space
Command LEGEND
Credit Written by Stefan M. – thank you, Stefan

From the same workshop — watch what the paid add-ons do

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

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

PlotData for AutoCAD - product boxPlotData numbering parcel corners in AutoCAD and inserting the coordinate table

PlotData
Number every parcel corner, label every side length and azimuth, and insert the coordinate table – one selection.

See PlotData$19.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

AUTODIM for AutoCAD - product box
Automatic Dimension — AutoCAD Add-in
AUTODIM
Length on every line, polyline and arc you select – as a real dimension or as text, with the layer name above it. Break at turns, at crossings, or total a whole object including its bends.

See AUTODIM$29

Contour Generator turning Google Earth ground into survey contour lines, a 3D terrain model and a printed contour sheet
WEB TOOL — NOTHING TO INSTALL
KIM Contour Generator
Draw a field in your browser, or import a KML from Google Earth, and get survey contours in a minute — scaled PDF, DXF in real UTM, plus STEP and STL of the terrain.

See Contour Generator$60

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