RebarFreeFormAccessor.SetTerminationPlaneNormalForBarIndex
Description:
Sets the plane's normal in which the termination (e.g. hook, crank) at end of bar with index barPositionIndex will stay. Will throw exception if the rebar has valid constraints.
Sets the plane's normal in which the termination (e.g. hook, crank) at end of bar with index barPositionIndex will stay. Will throw exception if the rebar has valid constraints.
Remarks:
This method does not take into account the rotation of the bar relative to its default position along the distribution path.
public void SetTerminationPlaneNormalForBarIndex(
int end,
int barPositionIndex,
XYZ terminationPlaneNormal
)
-
Int32endThe end of bar. Should be 0 for start or 1 for end.
-
Int32barPositionIndexAn index between 0 and (NumberOfBarPositions-1).
-
terminationPlaneNormalThe plane's normal in which the termination (e.g. hook, crank) at end of bar with index barPositionIndex will stay. The normal should be perpendicular to the bar direction at the specified end of bar.
-
Normal terminationPlaneNormal for end end isn't a valid normal for bar with index barPositionIndex
-
A non-optional argument was null
-
barPositionIndex is not in the range [ 0, NumberOfBarPositions-1 ]. -or- Invalid end. -or- terminationPlaneNormal has zero length.
-
This RebarFreeFormAccessor Rebar is constrained.