The answer is here.
Draw the profile as shown
Draw a profile in the top of the solid
Draw a profile on the curve as you requried
Extrude that part as shown
Click extrude in the model tree and select pattern option
Click curve in the pattern option
Click the curve as reference