Revit 2026 API
Rebar |
Note: This API is now obsolete.
Gets the termination's orientation. The orientation it's the same for both hook and crank.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
[ObsoleteAttribute("This method is deprecated in Revit 2026 and may be removed in a later version of Revit. Please use RebarShape.GetTerminationsData().TerminationOrientationAtStart or RebarShape.GetTerminationsData().TerminationOrientationAtEnd instead.")] public RebarHookOrientation GetDefaultHookOrientation( int end )
<ObsoleteAttribute("This method is deprecated in Revit 2026 and may be removed in a later version of Revit. Please use RebarShape.GetTerminationsData().TerminationOrientationAtStart or RebarShape.GetTerminationsData().TerminationOrientationAtEnd instead.")> Public Function GetDefaultHookOrientation ( end As Integer ) As RebarHookOrientation
public: [ObsoleteAttribute(L"This method is deprecated in Revit 2026 and may be removed in a later version of Revit. Please use RebarShape.GetTerminationsData().TerminationOrientationAtStart or RebarShape.GetTerminationsData().TerminationOrientationAtEnd instead.")] RebarHookOrientation GetDefaultHookOrientation( int end )
[<ObsoleteAttribute("This method is deprecated in Revit 2026 and may be removed in a later version of Revit. Please use RebarShape.GetTerminationsData().TerminationOrientationAtStart or RebarShape.GetTerminationsData().TerminationOrientationAtEnd instead.")>] member GetDefaultHookOrientation : end : int -> RebarHookOrientation
Parameters
- end Int32
- 0 for the termination at start, 1 for the termination at end.
Return Value
RebarHookOrientationReturns the termination's orientation. The orientation it's the same for both hook and crank.

Exception | Condition |
---|---|
ArgumentOutOfRangeException | end must be 0 or 1. |
See Also