RebarFreeFormAccessor.GetTerminationOrientationAtIndex Method

Gets the termination's (e.g. hook, crank ) orientation that is applied to this Rebar at the bar with index barPositionIndex at the specified end.


Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)

Syntax

C#

public RebarTerminationOrientation GetTerminationOrientationAtIndex(
	int barPositionIndex,
	int end
)

Parameters

barPositionIndex  Int32
An index between 0 and (NumberOfBarPositions-1).
end  Int32
0 for the start termination, 1 for the end termination.

Return Value

RebarTerminationOrientation
Returns the termination (e.g. hook, crank) orientation at the specified end.

Exceptions

ExceptionCondition
ArgumentOutOfRangeException end must be 0 or 1. -or- barPositionIndex is not in the range [ 0, NumberOfBarPositions-1 ].

Remarks

If this Rebar has Workshop Instructions set to Straight will return the same value for all barPositionIndex between 0 and (NumberOfBarPositions-1). This value will be the same as Rebar.GetTerminationOrientation(int end).

If this Rebar has Workshop Instructions set to Bent there are different cases:

See Also

Reference

RebarFreeFormAccessor Class
Autodesk.Revit.DB.Structure Namespace