RVTDocs.com

RebarShapeDefinitionBySegments.MajorSegmentIndex

Property
Description:
Index of a segment that can be considered the most important. Revit attempts to preserve the orientation of this segment when a Rebar instance changes its RebarShape to one with a different number of segments.
Syntax
public int MajorSegmentIndex { get; set; }
Exceptions
Exception Condition
ArgumentException When setting this property: majorSegmentIndex is not between 0 and NumberOfSegments.