Copy a block on a surface with specific distance

Hi
i have a surface and a block. I want my block to be copied on this surface with the distance of 300 for example. but this 300 is the division for each edge of the surface.

Can someone help me please?

and as you can see, i want this division to be at the center.

My first problem is that divisions are from the corner
And second problem is how i can copy the block aligned on the surface?

How would you calculated/determined this normally? Typically there would be a set of rules.

Example: if the ends are less than 50, then don’t center.

Absolutely the end part is less than 300. I want this distance to be for both start and end parts. Doesnt matter what is the distance. Just be equal for both sides


divide centred.gh (8.2 KB)

Uses Modulo division to find the remainder, divided by two to offset to centre, then used as the start of a sequence of offsets for Evaluate Length

(If I understand the question properly…)

Yes. Thank you so much :folded_hands: