At work, I have to do a motion study and we don't have the cutscene module of catia so I try to do it in sketch.
It works except for the light between the blue and purple cam. The purple cam drives the blue cam so the movement of the blue cam must be limited by the length of the light of the purple cam, but I can't find an adequate constraint to make this contact which must be on one side or the other side of this light depending on the position of the purple cam.
In the sketch I don't think there is a solution. In general, with the basic modules it doesn't seem obvious.
It may be necessary to try assembly rather by activating the consideration of constraints and the detection of collision during movement. But I'm afraid that it will block the movement when the parts come into contact instead of dragging the part along.
The coincidence stresses take into account the axis as an infinite element and therefore do not stop at the ends of the segment. This will not force the circle to stop at the ends of the oblong.