Layer Color Legend Generator
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | LAYCL |
|---|---|
| Category | Layer Tools |
| Author | Arthur Ganem (LetsBIMtogether) |
| Source | LetsBIMtogether/AutoLisp |
| License | MIT |
| Requirements | AutoCAD (full version, not LT), BricsCAD; no Express Tools needed. |
| Prompt language | English |
| Files | AG_LayerColorLegend_v4.LSP (4 KB) |
| Added | 2026-10-26 |
| Download the original fileSource repository | |
LAYCL draws an alphabetical legend of every layer in the drawing: a line on each layer, followed by the layer name, its colour number and its description.
LAYCL is a layer legend generator shared by LetsBIMtogether (Arthur Ganem). It shows at a glance which colour and linetype each layer in a drawing uses, which helps document a layer standard or add a project's layer list to a sheet.
Overview
You pick the top-left start point of the legend. The routine sorts all layers alphabetically and, for each one, draws a 200-unit line on that layer and a text to its right in the form 'layer name | colour | description'. Because the line and text take colour and linetype ByLayer, the legend shows how each layer really looks. Rows are stacked 5 units apart with 3-unit text.
How to use it
- Load AG_LayerColorLegend_v4.LSP with APPLOAD.
- Type LAYCL at the command line.
- Pick the top-left start point of the legend.
Notes and limitations
- Sizes are hard-coded (text 3, spacing 5, line 200 units); edit the file for drawings at other scales.
- One line and one text are added to each layer. Legend rows on layers that are off or frozen will not be visible.
- For layers using True Color or a colour book, only the nearest ACI number is written.
- Texts always use the 'Standard' text style. Xref-dependent layers are listed as well.
- License: the repository's LICENSE file is MIT.
Source and license
This tool is not made by eplisp. The file is published unchanged under its author's license; copyright stays with the author.
References
- Source repository: LetsBIMtogether/AutoLisp – https://github.com/LetsBIMtogether/AutoLisp
- Author: Arthur Ganem (LetsBIMtogether) – https://github.com/LetsBIMtogether
- License: MIT – https://github.com/LetsBIMtogether/AutoLisp/blob/7e3cb6c98e19043fed2c4865224fddf7b300a355/LICENSE
Found a mistake, or are you the author of this tool? Request a correction or removal