layerstate-addlayers
(layerstate-addlayers layerState
layerDef [ layerDef ... ] ))
This function adds 1 or more layers, with
their intended settings, to the layer state layerState.
Arguments
|
layerState
(string) name of the LayerState to add
the specified layers to
layerDef (list) layer definition to be added to the
LayerState
layerDef is
a list of (layerName status color linetype lineweight plotstyle)
:
layerName : (string) name of the layer to
add
status : (integer) combined from bit flags -
1=Off 2=Frozen 4=Locked 8=NoPlot
16=FrozenInNewVPort
color : (dotted pair) color definition, either
(62 . <IndexColor>) or (420 . <TrueColor>)
lineweight : (integer) one of the valid
LineWeight values
plotstyle : (string) name of the
plotstyle
any value can be specified as NIL - then the
default value is used (current drawing value)
|
Return
|
T if successfully added, NIL
otherwise
|
Example
|
(layerstate-addlayers
"myLayerState"
(list "Window" 4 '(62 . 2) "Dashed" 10
"Color_2")
(list "Roof" 5 '(420 . 1420266)
"Continuous" 20 nil)
:
)
adds 2 layers to the LayerState
|
Remarks
|
|