Function Entry: LAYERSTATE-RENAME
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: LAYERSTATE-RENAME
Name
layerstate-rename
Class
Layer-State Function
Syntax
(layerstate-rename oldname newname)
Arguments and Values
oldname: string; the existing layer-state name.newname: string; the replacement name.
Description
Renames a layer state.
Return Values
T on success; nil if oldname does not exist or newname is already in use.
Side Effects
Updates the layer-state record in the drawing.
Examples
Not documented on the vendor page.
Availability
- AutoCAD 2026: documented (Windows, macOS).
- BricsCAD V26: parallel function is
vl-layerstates-rename(chapter 24). - Status: AutoCAD-named family with BricsCAD divergence — see Phase 4 reconciliation.
See Also
- BricsCAD analogue:
vl-layerstates-rename(chapter 24). - Family pair documented in
vendor-inventory-2026.org§10 item 6.
Source Notes
- [layerstate-rename (AutoLISP 2026)](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-AutoLISP-Reference/files/GUID-843B8FC9-A1F5-48CE-B83D-98D747E85C83.htm)
- Status: documented (Phase 3 body fill).