Parametric building

Hi! ı have been trying to make a parametric building. weave did not list the item and when i link it with the curve evalute, parametre is becoming outside the curve domain. why is that?
boru.gh (15.7 KB)

Here’s a clue: