2025 Method
Changes 0
M

RebarShapeDefinitionBySegments.SetSegmentFixedDirection

Description:
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.
public void SetSegmentFixedDirection(
	int iSegment,
	double vecCoordX,
	double vecCoordY
)
  • iSegment
    Index of the segment (0 to NumberOfSegments - 1).
  • vecCoordX
    The x-coordinate of a 2D vector specifying the segment direction.
  • vecCoordY
    The 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.