Hi Yuliya,
Is this what you want? (I changed your definition a little bit in that I first constructed the pattern and then repeated it.
Shifting is only done in x direction as in your image.
The colouring is just to show the indepedent polylines, you can erase it.
also: don’t forget to push the play button in data dam when you make adjustments (it is there because the solver takes 1 or 2 seconds to do the calculations.