Create sequence of points with start and end points

Hi, I am trying to create points in X,Y with sequence starting from known start point and with known step and variable amount. the issue is I need to limit the width of these point in each line so when reach to x=800 go to new line under the current line (step down in Y) and start the same sequence but in reverse, and when reach X=50, do the same in the other direction (step down Y, and create points from x=50 to x=800) in new line and so on till the amount finish. any ideas please ?

What have you tried so far? Creating sequences is easiest in a code block. You can define everything you’re looking for. It may take a little math to respect some of your constraints but that’s about it. You can always create lines as a guide and then get points at the required distances as an alternative.

Thanks Nick, can you show me how to create the below list of points in X,Y. Given X = count of elements (input). Y = counter decrease when X=50 or X= 500. I hope its clear :slightly_smiling_face:
Point: (X,Y)
50 100
100 100
150 100
200 100
250 100
300 100
350 100
400 100
450 100
500 100
500 50
450 50
400 50
350 50
300 50
250 50
200 50
150 50
100 50
50 50
50 0
100 0
150 0
200 0
250 0
300 0
350 0
400 0
450 0
500 0

This is not a forum for requesting work to be done for you. You need to show that you’ve searched the forum for similar topics and tried creating your own solution. If you get stuck somewhere we can help.

DesignScript syntax for sequences looks likes this:
start..end..step;
Using a # before end or step makes that value a number of iterations instead of a mathematical value.

1 Like

If your X value range doesn’t always go from 50…500 and then 500…50 and then 50…500, meaning that it may stop somewhere in the middle of the range within any of the iterations or loops, then you will probably need to use python. Also look at the “Point.ByCoordinates” node.