Help with Code Block syntax

Hey quick question.

How can I combine lacing of a sequence within a code block?

The above works, but how can I make the below work that the lacing is not lost and I don’t have to make referals through xlist and ylist etc

@RevitRobot ,

whats your input?
what do you want to create?

KR

Andreas

I want to create parallel lines of 10000 long with each 4000 spacing in between. But every 20 lines I want to create a new set of lines right next to it (hence the 14000).
The input is a list, so I can count how many dots I have to create.
The dots then serve as starting points for the lines.

But my question is how can I have a Code block understand my syntax or grammar so I don’t need to refer to xlist or ylist etc

Amigo @RevitRobot buenas. I know I have a similar script somewhere, but I can’t find it to share it, I only found an image, but maybe it will give you some ideas on how to improve your script, good luck!!

@RevitRobot ,

hmmm…


KR
Andreas

Yeah so why do we have to use t1 and t2.

Why can I not write List.Chop(0…#10000…4000, 2)?

@RevitRobot ,

check out this nice paper

Amigo @RevitRobot, is this what you need??

You have to enclose the range/sequence shortcode in parentheses:

image

But for the sake of clarity you’d better use the code in the first of your screenshots.

1 Like

Hey Anton,

I tried that but then I can’t apply the list levels and lacing properly. But I guess that doesn’t matter anymore because I switched to Points.ByCoordinates rather than translating the Origin point