Function Entry: LAYERSTATE-GETNAMES
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: LAYERSTATE-GETNAMES
Name
layerstate-getnames
Class
Layer-State Function
Syntax
(layerstate-getnames [includehidden] [includexref])
Arguments and Values
includehidden(optional): T or nil. With T, the result includes hidden layer states.includexref(optional): T or nil. With nil, xref layer states are excluded.
Description
Returns the names of layer states defined in the drawing, optionally filtered to exclude hidden or xref-borrowed states.
Return Values
A list of strings, or nil if no layer states exist.
Side Effects
None.
Examples
(layerstate-getnames)returns("First Floor" "Second Floor" "Foundation").
Availability
- AutoCAD 2026: documented (Windows, macOS).
- BricsCAD V26: parallel function is
vl-layerstates-list(chapter 24). - Status: AutoCAD-named family with BricsCAD divergence — see Phase 4 reconciliation.
See Also
- BricsCAD analogue:
vl-layerstates-list(chapter 24). - Family pair documented in
vendor-inventory-2026.org§10 item 6.
Source Notes
- [layerstate-getnames (AutoLISP 2026)](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-AutoLISP-Reference/files/GUID-B0EF0543-F792-4391-B54F-606F5685065C.htm)
- Status: documented (Phase 3 body fill).