Any existing constraints are discarded. The new constraints replace them. Any parameters driving the constraints must already be added with RebarShapeDefinition.AddParameter().
The allowable constraint types are:
RebarShapeConstraintAngleFromFixedDir
RebarShapeConstraintSegmentLength
RebarShapeConstraintFixedSegmentDir
RebarShapeConstraintProjectedSegmentLength
RebarShapeConstraint180DegreeBendArcLength
RebarShapeConstraint180DegreeBendRadius
RebarShapeConstraint180DegreeDefaultBend
At least two independent constraints must be specified. Overconstraining is supported. Constraints of type RebarShapeConstraintFixedSegmentDir must be unique.