Gets the analytical segment with the specified id.
Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public MEPAnalyticalSegment GetSegmentById( int segmentId )
Parameters
- segmentId Int32
- The segment id to be retrieved. This id is not 0 based.
Return Value
MEPAnalyticalSegmentThe returned analytical segment.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The input must be a valid segment id. |
