DuplicateLayer

bool DuplicateLayer(this CompoundStructure cs, int layerIndex)

Duplicates a layer at a specific index.

Parameters

  • csCompoundStructure

    The compound structure.

  • layerIndexint

    Index of the layer to duplicate.

Returns: True if successful; otherwise false.

Example

cs.DuplicateLayer(2);