Do you have a CAD drawing program? easy enough using that. Just draw your curve and then add a series of evenly spaced lines that meet the curve and use the lengths of the lines to move the cross slide, carrage or topslide moves by the line spacing.
Bit like this

Which was used to do this

Also works of more complex shapes
