GetCompoundStructure

CompoundStructure GetCompoundStructure(this Element element)

Gets the compound structure from an element instance.

Parameters

  • elementElement

    The Revit element instance.

Returns: The compound structure, or null if unavailable.

Example

CompoundStructure cs = wall.GetCompoundStructure();
int count = cs?.LayerCount ?? 0;