Revit 2026 API
MEPAnalytical |
Gets the analytical segment at the specified position.
Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public MEPAnalyticalSegment GetSegmentByIndex( int index )
Public Function GetSegmentByIndex ( index As Integer ) As MEPAnalyticalSegment
public: MEPAnalyticalSegment^ GetSegmentByIndex( int index )
member GetSegmentByIndex : index : int -> MEPAnalyticalSegment
Parameters
- index Int32
- The index where the segment is stored. This index is 0 based.
Return Value
MEPAnalyticalSegmentThe returned analytical segment.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The index must range from 0 to GetNumberOfSegments()-1. |
See Also