WorksessionFileLayerValues

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

Constructors

WorksessionFileLayerValues

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

WorksessionFileLayerValues

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

Finalizer

~WorksessionFileLayerValues

#
~WorksessionFileLayerValues()
Releases the native layer settings.

Properties

Color

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

Locked

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

Visible

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

Methods

Dispose

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

GetLayer

#Since v9.0
public Layer GetLayer()
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.
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
public void SetLayer(Layer layer)
Replaces the layer settings with a copy of layer.
layer (Layer)The layer to copy.
ArgumentNullExceptionIf layer is null.