Click or drag to resize

File3dmLayerTableAddLayer Method

Easy way to add a layer to the model

Namespace:  Rhino.FileIO
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public int AddLayer(
	string name,
	Color color
)

Parameters

name
Type: SystemString
new layer name
color
Type: System.DrawingColor
new layer color

Return Value

Type: Int32
If layer_name is valid, the layer's index (>=0) is returned. Otherwise, RhinoMath.UnsetIntIndex is returned.
See Also