layerstate-restore


(layerstate-restore  layerState  viewport  [ options ] )

This function restores the specified LayerState in the given viewport, with options if provided.

Arguments

layerState  (string) name of the LayerState to be restored

viewport  (ename) the viewport where the LayerState will be restored; if NIL, the model space is used

options  (optionally) (integer) sum of flags to be used :
1  turn off all layers except those in the restored LayerState
2  freeze all layers except those in the restored LayerState
4  restore the layer properties as "Viewport Overrides" (only applies if 'viewport' is not NIL)

Return

list of the layers which were restored (list of strings), or NIL of the LayerState does not exist or does not contain any layer

Example

(layerstate-restore  "myLayerState" NIL 1)  ("Window" "Roof")

Remarks




©  Bricsys NV. All rights reserved.