Click or drag to resize

LayerTableAddPath Method (String, Color)

Adds all of the layer in the specified layer path, beginning with the root. Layer paths contain one or more valid layers names, with each name separated by NamePathSeparator. For example, "Grandfather::Father::Son".

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 8.0
Syntax
public int AddPath(
	string layerPath,
	Color layerColor
)

Parameters

layerPath
Type: SystemString
The layer path.
layerColor
Type: System.DrawingColor
The color of newly created layers. The colors of layers that already exist will not be changed.

Return Value

Type: Int32
The index of the last layer created if successful, UnsetIntIndex on failure.
See Also