GetRegionIds Method


Compound Structure Get Region Ids Method

Gets the region ids of this compound structure.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public IList<int> GetRegionIds()

Return Value

IList Int32
The ids of the regions defining this CompoundStructure.
Exceptions
Exception Condition
InvalidOperationException This operation is valid only for vertically compound structures.
Remarks
A vertically compound structure consists of regions with polygonal boundaries.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →