Click or drag to resize

LayerTableDuplicate Method (IEnumerableInt32, Boolean, Boolean)

Duplicates, or copies, one or more layers. Duplicated layers are added to the document.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public int[] Duplicate(
	IEnumerable<int> layerIndices,
	bool duplicateObjects,
	bool duplicateSublayers
)

Parameters

layerIndices
Type: System.Collections.GenericIEnumerableInt32
The indices of layers to duplicate.
duplicateObjects
Type: SystemBoolean
If true, then layer objects will also be duplicated and added to the document.
duplicateSublayers
Type: SystemBoolean
If true, then all sublayers of the layer will be duplicated.

Return Value

Type: Int32
The indices of the newly added layers if successful, an empty array on failure.
Version Information

Rhino for Windows

Supported in: 6.20
See Also