You have started a duplicate thread and renamed the original one (where you got the code and image mentioned here) with the useless title “Solved thread”:
Each time you describe your objective, including in the PM you sent me, the details change in subtle but very significant ways. This is a classic example of how this forum is often less about explaining Grasshopper and more about teaching people how to think algorithmically.
Re-posting my code from yesterday here - no one will ever find it in a thread titled “Solved thread”. Think man!
step_srf_2018Apr30a.gh (64.8 KB)
step_srf_2018Apr30b.gh (67.7 KB)