layerstate-save


(layerstate-save  layerState  stateMask  viewport)

This function saves the specified LayerState to the drawing database.

Arguments

layerState  (string) name of the LayerState to be restored

stateMask  (integer)  sum of bit values, defining which layer properties shall be used by the saved LayerState
1  saves the On / Off state
2  saves the Frozen / Thawed state
4  saves the Lock state
8  saves the Plot / NoPlot state
16  saves VPDFLT state
32  saves Color
64  saves Linetype
128  saves Lineweight
(if provided as NIL, the combination of all bit flags is used for 'stateMask')

viewport  (ename) the viewport to save the VPLAYER settings from; if NIL, the saved LayerState will not use VPLAYER settings

Return

T if successfully save, NIL otherwise

Example

(layerstate-save “WallLayers“ 239 vport)  T

Remarks




©  Bricsys NV. All rights reserved.