You need two bodies with prescribed motion. One rotating with a constant speed and is called the paper body (because the curve will be drawn onto it) and the second in your case will have a slider joint with a prescribed lift curve (from a text file).
Consider a system, like the following
After simulating the kinematics do a trace curve
and pick CAM SYNTHESIS as well as the required parts