layerstate-save

AutoCad AutoLISP Functions

 
layerstate-save
 
 
 

Saves a layer state in the current drawing

(layerstate-save layerstatenamemaskviewport)

Arguments

layerstatename

A string specifying the name of the layer state to save.

mask

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

viewport

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.

Return Values

T if the save is successful; otherwise nil

Examples

(layerstate-save “myLayerState“ 21 viewportId)
T
(layerstate-save “myLayerState“ nil nil)
nil