Function Syntax: LLFP Version: 1.1 Date: 20.06.2026 6:38:54PM https://jtbworld.com/autocad-layer-list-lsp short_description: | SEO Description ๐Ÿš€ LayerList is an AutoCAD and Civil 3D AutoLISP layer reporting utility for exporting the active drawing layer table. It helps CAD users create Excel-friendly layer audits for visibility, freeze, lock, color, linetype, lineweight, plot style, and plottable status. command: | Main Command and Loading Method ๐Ÿงฐ Load the file with APPLOAD or (load "LayerList.lsp"). Run LLFP to save the layer list to a text file. Main command function: c:llfp. Main helper functions: ax:layer-list and layer-list-fprint. description: | Detailed Description ๐Ÿ“˜ The program scans the AutoCAD ActiveX layer collection of the current drawing and builds a sorted layer report. The user runs LLFP, chooses an output path, and receives a text file containing the layer table. The exported data includes layer name, on or off state, frozen or thawed state, lock state, color, linetype, lineweight, plot style, plottable status, and viewport default freeze setting. This is useful for DWG cleanup, AutoCAD layer standards, Civil 3D project review, plotting diagnostics, and Excel-based CAD quality control. Important: The routine is non-destructive and does not change the drawing. helper_function: | Helper Logic ๐Ÿš€ Command entry point - c:llfp starts the export workflow, asks the user where to save the report, and confirms whether the layer list was created. ๐Ÿ” Layer scanning engine - ax:layer-list loops through vla-get-Layers from the active document and collects each layer record. ๐Ÿ“Š Layer property extraction - The routine reads name, on/off, frozen/thawed, locked/not locked, color, linetype, lineweight, plot style, plottable status, and viewport default freeze state. ๐ŸŽจ Color formatting - AutoCAD color indexes 1 to 7 are converted to readable names such as Red, Yellow, Green, Cyan, Blue, Magenta, and White; higher color indexes are written as numbers. ๐Ÿ“ Lineweight formatting - The code converts AutoCAD lineweight values to readable decimal values and writes Default when the layer uses default lineweight. ๐Ÿง  Sorted output - The layer list is sorted alphabetically using vl-sort and strcase, making the exported report easier to review. ๐Ÿ“ค Text file writer - layer-list-fprint writes the header row and layer records to the selected .txt file. ๐Ÿ” COM startup check - The code verifies Visual LISP COM availability and loads COM support when needed before accessing the AutoCAD ActiveX API. functionalities: | Functionalities ๐Ÿ“Š Export active drawing layers - Creates a text report of all layers in the current AutoCAD or Civil 3D drawing. ๐Ÿ” Audit layer visibility - Reports whether each layer is On or Off for faster drawing diagnostics. ๐ŸงŠ Review freeze states - Shows whether each layer is Frozen or Thawed, including viewport default freeze information. ๐Ÿ”’ Check locked layers - Identifies locked and unlocked layers for CAD management and editing control. ๐ŸŽจ Document layer appearance - Exports color, linetype, lineweight, and plot style values for standards comparison. ๐Ÿ–จ๏ธ Verify plotting behavior - Reports whether layers are plottable or not plottable, helping solve plotting and publishing problems. ๐Ÿ“ค Excel-friendly output - Writes a text file that can be imported into Excel for filtering, sorting, documentation, and QA review. ๐Ÿงน Non-destructive CAD audit - Reads drawing layer properties without changing entities, layer definitions, styles, blocks, xrefs, or Civil 3D objects. result: | Final Result โœ… The final result is a compact AutoCAD and Civil 3D layer inventory report for CAD auditing, plotting review, and drawing documentation. It reduces manual layer checking, improves DWG quality control, and supports cleaner production drawings. additional_info: | Important Notes ๐Ÿ”ด LayerList is a reporting tool only. It does not rename, delete, freeze, thaw, lock, unlock, or modify layers. ๐Ÿ“Œ The output is a plain text table that can be imported into Excel, not a strict comma-separated CSV file. ๐Ÿงฉ The code does not edit Civil 3D ProfileView, SectionView, Alignment, labels, bands, surfaces, corridors, or styles. ๐Ÿ” The report reflects the active drawing layer table at the time the command is executed.