Gets the ids of region bound to a specified segment.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public IList<int> GetAdjacentRegions( int segmentId )
Parameters
- segmentId Int32
- The id of a segment in this CompoundStructure.
Return Value
IList<Int32>The ids of the regions that are bounded by the specified segment.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The segment id is invalid. |
InvalidOperationException | This operation is valid only for vertically compound structures. |