Revit 2025.3 API
Rebar |
Returns the normal of plane in which the hook at end of bar with index barPositionIndex will stay.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public XYZ GetHookPlaneNormalForBarIdx( int end, int barPositionIndex )
Public Function GetHookPlaneNormalForBarIdx ( end As Integer, barPositionIndex As Integer ) As XYZ
public: XYZ^ GetHookPlaneNormalForBarIdx( int end, int barPositionIndex )
member GetHookPlaneNormalForBarIdx : 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
XYZThe normal of plane in which the hook at end of bar with index barPositionIndex will stay.

Exception | Condition |
---|---|
ArgumentOutOfRangeException | barPositionIndex is not in the range [ 0, NumberOfBarPositions-1 ]. -or- Invalid end. |
See Also