Skip to content

File3dmLayerTable.AddDefaultLayer

Public Class

Easy way to add a default layer to the model.

Namespace: Rhino.FileIO

Assembly: RhinoCommon (in RhinoCommon.dll)

**Since:**7.30

Syntax

public int AddDefaultLayer(
string name,
Color color
)

Parameters

name

Type:System.String
Layer name.

color

Type:System.Drawing.Color
Layer color.

Return Value

Type:Int32
The layer’s index (>=0) is returned. Otherwise, RhinoMath.UnsetIntIndex is returned.

Remarks

Note, the layer name will be modified as needed in the model and manifest.