Click or drag to resize

File3dmLayerTableAddDefaultLayer Method

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: SystemString
Layer name.
color
Type: System.DrawingColor
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.
See Also