I've tried to make a parametric wall

Your loft surface is horizontal (a floor), not vertical (a wall). Use Z vector instead of Y:


Parametric wall_2022Oct26a.gh (14.8 KB)

Many examples on the forum, did you see these from seven years ago?

And something more recent (3 years ago):