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