WorksessionFileLayerValues

ReferencesSince v9.0
Layer settings saved in a Rhino worksession (.rws) file.

Constructors

WorksessionFileLayerValues

#Since v9.0
Creates layer settings with the defaults: visible, unlocked and black.
public WorksessionFileLayerValues()

WorksessionFileLayerValues

#Since v9.0
Creates a copy of other layer settings.
public WorksessionFileLayerValues(
WorksessionFileLayerValues
other
The settings to copy.
)
ArgumentNullExceptionIf other is null.

Finalizer

~WorksessionFileLayerValues

#
Releases the native layer settings.
~WorksessionFileLayerValues()

Properties

Color

#Since v9.0
Gets or sets the layer color.
public Color Color { get; set; }

Locked

#Since v9.0
Gets or sets whether the layer is locked.
public bool Locked { get; set; }

Visible

#Since v9.0
Gets or sets whether the layer is visible.
public bool Visible { get; set; }

Methods

Dispose

#Since v9.0
Releases the native layer settings.
public void Dispose()

GetLayer

#Since v9.0
Gets a copy of the rest of the layer's settings, saved by Rhino 9 and later. Reading an older file leaves this set to a default layer.
public Layer GetLayer()
Remarks: Rhino uses the print color and width, model visibility, visibility in new details, whether the layer is expanded, and the per-viewport settings. It does not use the layer's id, and a layer saved without one gets a new id when it is read.
A new layer. Changes to it are kept only after SetLayer(Layer).

SetLayer

#Since v9.0
Replaces the layer settings with a copy of layer.
public void SetLayer(
layer
The layer to copy.
)
ArgumentNullExceptionIf layer is null.