GetLayerMaterialName

string GetLayerMaterialName(this CompoundStructure cs, int layerIndex, Document doc)

Gets the material name of a specific layer.

Parameters

  • csCompoundStructure

    The compound structure.

  • layerIndexint

    The layer index.

  • docDocument

    The document used to resolve the material.

Returns: Material name, or null if not found.

Example

string name = cs.GetLayerMaterialName(0, doc);