GetAllMaterials

IEnumerable<Material> GetAllMaterials(this CompoundStructure cs, Document doc)

Gets all unique materials used in the compound structure.

Parameters

  • csCompoundStructure

    The compound structure.

  • docDocument

    The document used to resolve materials.

Returns: A list of unique materials (empty if none).

Example

var mats = cs.GetAllMaterials(doc);