Gets the analytical segment at the specified position.
Namespace: Autodesk.Revit.DB.AnalysisAssembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2024
Syntax
C# |
---|
public MEPAnalyticalSegment GetSegmentByIndex( int index ) |
Visual Basic |
---|
Public Function GetSegmentByIndex ( _ index As Integer _ ) As MEPAnalyticalSegment |
Visual C++ |
---|
public: MEPAnalyticalSegment^ GetSegmentByIndex( int index ) |
Parameters
- index
- Type: System..::..Int32
The index where the segment is stored. This index is 0 based.
Return Value
The returned analytical segment.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentOutOfRangeException | The index must range from 0 to GetNumberOfSegments()-1. |