(layerstate-addlayers layerState layerDef1 [ layerDef2 ... ])
Adds or updates layer settings to a layer state.
The layerState argument is the name of a layer state, a string.
The layerDef argument is a list composed of (layerName status color linetype lineweight plotstyle) where:
- layerName is the name of a layer, a string.
- status is a numeric sum of bit flags:
- 1 - Off
- 2 - Frozen
- 4 - Locked
- 8 - No Plot
- 16 - Frozen in new viewports
- color is a dotted pair such as (62 . Index), (420 . TrueColor), or (430 . "colorname$colorbook").
- lineweight is one of the valid LineWeight values, an integer.
- plotstyle is a name of a plot style, a string.
Any value in the layerDef list can be substituted with nil to use the default value.
The function returns T if successful, nil otherwise.
Example
The following example adds two layers to the LayerState:
(layerstate-addlayers "LayerState"
'("Door" 0 (62 . 1) "Continuous" 1 nil)
'("Window" 1 (62 . 2) "Continuous" 1 nil)
)
Tell me about...
Programming Overview of LISP (LISt Processing) Language
en
italiano
čeština
Deutsch
français
hrvatski
magyar
polski
српски
русский
中文
中文
한국어
español