Please go through the tutorial
Creating the “graph” feature
Go to insert--model datum--graph (as shown in the imgae)
Enter the name “GRAPH_1”
Insert coordinate system
And sketch the profile of the graph
Main criteria while creating the Profile is that it should be of length 360 ( x axis) . you can create any cross section in Y axis.
Create a sketch with circle of dia 200 (you could use any dia)
You should divide the circle , for defining the starting point of the variable sec sweep
Keeping the sketch on selection go to insert—variable sec sweep—create sketch (cross section).
Draw a rectangle 100 x 60 as shown in the image, Now you will be getting a ring as shown in the image
Do the edit definition of the variable sec sweep—edit sketch—go to tools—relation
sd4 = evalgraph(“GRAPH_1”, trajpar*360)
You will get a cam of this shape, if you want to change the shape of the cam , you can edit the graph to any desired profile