RebarUpdateCurvesData.SetHookPlaneNormalForBarIdx
Description:
Sets the plane's normal in which the termination at end of bar with index barPositionIndex will stay. The normal will be used for both hook and crank. This information is set to the rebar after the API execution is finished successfully.
Sets the plane's normal in which the termination at end of bar with index barPositionIndex will stay. The normal will be used for both hook and crank. This information is set to the rebar after the API execution is finished successfully.
Remarks:
This information is set to the rebar after the API execution is finished successfully. Before setting the value a validation will be done. We consider a termination plane normal valid if it's perpendicular with the bar direction at end.
This information is set to the rebar after the API execution is finished successfully. Before setting the value a validation will be done. We consider a termination plane normal valid if it's perpendicular with the bar direction at end.
[ObsoleteAttribute("This method is deprecated in Revit 2026 and may be removed in a later version of Revit. Please use RebarUpdateCurvesData.SetTerminationPlaneNormalForBarIdx instead.")]
public void SetHookPlaneNormalForBarIdx(
int end,
int barPositionIndex,
XYZ terminationPlaneNormal
)
-
Int32endThe end of bar. Should be 0 for start or 1 for end.
-
Int32barPositionIndexIndex of the bar for which it will set the termination's plane normal.
-
terminationPlaneNormalThe plane's normal in which the termination at end of bar with index barPositionIndex will stay. The normal will be used for both hook and crank.
-
A non-optional argument was null
-
Invalid end. -or- terminationPlaneNormal has zero length.