RebarSetHookOrientation Method |
Note: This API is now obsolete.
Defines the orientation of the termination's plane at the start or at the end of the rebar with respect to the orientation of the first or the last curve and the plane normal.
The orientation it's the same for both hook and crank.
Namespace: Autodesk.Revit.DB.StructureAssembly: 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 Rebar.SetTerminationOrientation instead.")]
public void SetHookOrientation(
int end,
RebarHookOrientation terminationOrientation
)
<ObsoleteAttribute("This method is deprecated in Revit 2026 and may be removed in a later version of Revit. Please use Rebar.SetTerminationOrientation instead.")>
Public Sub SetHookOrientation (
end As Integer,
terminationOrientation As RebarHookOrientation
)
public:
[ObsoleteAttribute(L"This method is deprecated in Revit 2026 and may be removed in a later version of Revit. Please use Rebar.SetTerminationOrientation instead.")]
void SetHookOrientation(
int end,
RebarHookOrientation terminationOrientation
)
[<ObsoleteAttribute("This method is deprecated in Revit 2026 and may be removed in a later version of Revit. Please use Rebar.SetTerminationOrientation instead.")>]
member SetHookOrientation :
end : int *
terminationOrientation : RebarHookOrientation -> unit
Parameters
- end Int32
-
0 for the start termination, 1 for the end termination.
- terminationOrientation RebarHookOrientation
-
Only two values are permitted:
Value = Right: The termination is on your right as you stand at the end of the bar,
with the bar behind you, taking the bar's normal as "up."
Value = Left: The termination is on your left as you stand at the end of the bar,
with the bar behind you, taking the bar's normal as "up."
ExceptionsException | Condition |
---|
ArgumentOutOfRangeException |
end must be 0 or 1.
-or-
A value passed for an enumeration argument is not a member of that enumeration
|
Remarks
If RebarShapeDefinesHooks property of ReinforcementSettings is true (non-European shapes), SetTerminationOrientation method does nothing.
See Also