i selected pattern and then curve option and followed the next procedure but it doesn't follow the path. would you help me?
The answer is here.
Answered with a tutorial: https://grabcad.com/tutorials/how-to-make-pattern-along-a-curve
if we want to use different heights of that cylinder you made on the top of then will we be using a relationship or what?
Be careful to use pattern along curve, sometime it doesn't follow the curve exactly, such as when you make a chain system. There are some trick to do.
When you want pattern along curve, you should place a datum point to the end of the curve and relate feature to that point and then do a pattern.
Point will follow to the curve + Feature Relate to that point = Feature relate to the curve
Which tricks, please ?