Here is a challenge for those working with 2D Constraints.
I have created a drawing of a rectangular metal strip with a hole at each end. My goal is to constrain the strip in such a manner that the position of the holes, and distance between them, is governed by an unconstrained 'system' line from center to center. The width of the strip should be two times the diameter of the holes. The total length of the strip should be the distance from hole to hole plus two times the diameter.
The problem with the drawing is that, although most of the constraints work as expected, the holes do not always stay inside the contour of the strip. If the strip is lengthened by grip stretching the red system line one of the holes will end up outside the strip.
To solve the problem I have added more constraints. But in doing so I have lost the flexibility of the system line.
My question is: Is there any way to ensure that the holes stay inside the strip without constraining the system line?