RebarShapeDefinitionBySegments.SetSegmentFixedDirection
Description:
Fix the direction of a segment.
Fix the direction of a segment.
Remarks:
The centerline of the segment will be constrained to be parallel to the vector. The segment must have at least one constraint.
The centerline of the segment will be constrained to be parallel to the vector. The segment must have at least one constraint.
public void SetSegmentFixedDirection(
int iSegment,
double vecCoordX,
double vecCoordY
)
-
Int32iSegmentIndex of the segment (0 to NumberOfSegments - 1).
-
DoublevecCoordXThe x-coordinate of a 2D vector specifying the segment direction.
-
DoublevecCoordYThe y-coordinate of a 2D vector specifying the segment direction.
-
iSegment is not between 0 and NumberOfSegments. -or- The length of the vector (vecCoordX, vecCoordY) is too close to zero.