GetSpaces

IList<Space> GetSpaces(this RevitLinkInstance link)

Gets all placed MEP spaces from the linked document (Area > 0).

Parameters

  • linkRevitLinkInstance

    The link instance.

Returns: List of Space objects (empty if link not loaded).

Example

var spaces = link.GetSpaces();