GetSegment Method


Rebar Shape Definition By Segments Get Segment Method

Return a reference to one of the segments in the definition.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public RebarShapeSegment GetSegment(
	int segmentIndex
)

Parameters

segmentIndex Int32
Index of the segment (0 to NumberOfSegments - 1).

Return Value

RebarShapeSegment
The requested segment.
Exceptions
Exception Condition
ArgumentException segmentIndex is not between 0 and NumberOfSegments.
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 →