Function Entry: LAYERSTATE-GETLASTRESTORED
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: LAYERSTATE-GETLASTRESTORED
Name
layerstate-getlastrestored
Class
Layer-State Function
Syntax
(layerstate-getlastrestored)
Arguments and Values
None.
Description
Returns the name of the layer state most recently restored in the current drawing.
Return Values
A string naming the last-restored layer state, or nil if no restore has happened in this session.
Side Effects
None.
Examples
Not documented on the vendor page.
Availability
- AutoCAD 2026: documented (Windows, macOS).
- BricsCAD V26: not under this name. See Phase 4 cross-reference.
- Status: AutoCAD-named family with BricsCAD divergence — see Phase 4 reconciliation.
See Also
- No direct BricsCAD analogue. BricsCAD's parallel
vl-layerstates-*family does not currently document this operation; consider implementing in user code or treating as AutoCAD-only. - Family pair documented in
vendor-inventory-2026.org§10 item 6.
Source Notes
- [layerstate-getlastrestored (AutoLISP 2026)](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-AutoLISP-Reference/files/GUID-404D79AB-B213-4EF4-A0A6-19F2E4F0A9A9.htm)
- Status: documented (Phase 3 body fill).