RebarUpdateCurvesData.SetHookPlaneNormalForBarIdx
Method
Description:
Set the normal of plane in which the hook at end of bar with index barPositionIndex will stay. This information is set to the rebar after the API execution is finished successfully.
Set the normal of plane in which the hook at end of bar with index barPositionIndex will stay. 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 hook 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 hook plane normal valid if it's perpendicular with the bar direction at end.
Parameters
Parameter | Type | Description |
---|---|---|
end | Int32 | The end of bar. Should be 0 for start or 1 for end. |
barPositionIndex | Int32 | Index of the bar for which it will set hook plane normal. |
hookNormal | XYZ | The normal of plane in which the hook at end of bar with index barPositionIndex will stay. |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | Invalid end. -or- hookNormal has zero length. |