Revit 2026 API
Rebar |
Gets the plane's normal in which the termination (e.g. hook, crank) at end of bar with index barPositionIndex will stay.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public XYZ GetTerminationPlaneNormalForBarIndex( int end, int barPositionIndex )
Public Function GetTerminationPlaneNormalForBarIndex ( end As Integer, barPositionIndex As Integer ) As XYZ
public: XYZ^ GetTerminationPlaneNormalForBarIndex( int end, int barPositionIndex )
member GetTerminationPlaneNormalForBarIndex : end : int * barPositionIndex : int -> XYZ
Parameters
- end Int32
- The end of bar. Should be 0 for start or 1 for end.
- barPositionIndex Int32
- An index between 0 and (NumberOfBarPositions-1).
Return Value
XYZReturns the plane's normal in which the termination (e.g. hook, crank) at end of bar with index barPositionIndex will stay.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | barPositionIndex is not in the range [ 0, NumberOfBarPositions-1 ]. -or- Invalid end. |
This method does not take into account the rotation of the bar relative to its default position along the distribution path.
See Also