Saves a layer state in the current drawing
Supported Platforms: Windows and Mac OS
(layerstate-save layerstatename mask viewport)
Type: String
Name of the layer state to save.
Type: Integer
Numeric sum designating which properties in the layer state are to be restored.
1 -- Restore the saved On or Off value
2 -- Restore the saved Frozen or Thawed value
4 -- Restore the saved Lock value
8 -- Restore the saved Plot or No Plot value
16 -- Restore the saved VPVSDFLT value
32 -- Restore the saved Color
64 -- Restore the saved LineType
128 -- Restore the saved LineWeight
Type: Ename (entity name)
An ename of the viewport whose VPLAYER setting is to be captured. If nil, the layer state will be saved without VPLAYER settings.
Type: T or nil
T if the save is successful; otherwise nil.
(layerstate-save "myLayerState" 21 viewportId) T (layerstate-save "myLayerState" nil nil) nil