(layerstate-save layerstatename mask viewport)


Saves a layer state in the current drawing.


The layerstatename argument is a string specifying the name of the layer state to save. The mask argument is an integer 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
The viewport argument is an ename (ads_name) of the viewport whose VPLAYER setting is to be captured. If nil, the layer state will be saved without VPLAYER settings.
Returns T if the save is successful; otherwise nil

Example

Code Returns
(layerstate-save myLayerState) T

 

Tell me about...

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language