Parametric pattern

this definition allows you to define a base curve and a profile curve and change the dimensions of the pattern unit as shown