GetSegmentData Method


Gets the analysis data on the specified segment.

Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2024

Syntax

C#
public MEPNetworkSegmentData GetSegmentData(
	int segmentId
)
Visual Basic
Public Function GetSegmentData ( _
	segmentId As Integer _
) As MEPNetworkSegmentData
Visual C++
public:
MEPNetworkSegmentData^ GetSegmentData(
	int segmentId
)

Parameters

segmentId
Type: SystemInt32
The segment id to be retrieved.

Return Value

The calculated data of this segment. Be aware that the segment data may be invalid if the calculation failed.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The input must be a valid segment id.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →