Grid relative to a polyline

I fixed it. This is BEFORE:

This is AFTER:


13x13_Parcel_2021_Jul27a.gh (24.9 KB)

I suspect the rest of your grid issue is rather simple. How about an image of what you expect?