Array Series of Blocks Side-by-side

Hi all,

I am trying to array a series of blocks side by side (they are variations of modular units). I am trying to array them side by side every x-distance along a line. Then, by moving the points in Rhino that control the length of the line another block (unit) is placed along it. I want them to appear as a series, in order.

Here is my current script, it produces too many units, and extends beyond the line for some reason. the units it spits out are stacked on one another too.


Hi Faris,

please include a Grasshopper file in your opening post.

Simply looking at your script though, I can tell you the problem is that you are providing Move with points instead of vectors. When you divide your distance you will have one more translation than you want, because the number of divisions is one less than the division points created.

Without posting your code and geometry, there isn’t much to do. It sounds like these threads?

3. Attach minimal versions of all the relevant files

Array Series of Blocks.gh (19.6 KB)
Here’s the file!

You will also have to internalize the referenced geometry. Right click and choose “internalize data” from the context menu on your points and blocks. Save the GH file and repost.

Array Series of Blocks.gh (359.3 KB)
Hope this works

1 Like

Does this react in the way you expect?
Array Series of Blocks_volker.gh (369.3 KB)

I assumed the same housing unit mirrored every second unit, but I still have to clean up the tree structure and array failure at one unit.

1 Like

Thank you for making great progress on it! The only thing left is I am trying to array between two points that I can control rather than linear array. (so I move the points and the line in between is divided in length to the dimension of each unit (x). so every (x) lenght i extend the points another unit appears.

Also why can’t I see your components unless I click on them :smiley: ?

Thanks again

Do you want the number of housing units to round up or down based on the distance division? Also, do you plan to array the housing units in a random direction, or just in the world x direction?

That’s dependent on the display settings of the icons at the top right of the GH canvas.

Please round down.

And oh thank you!

Array Series of Blocks_volker2.gh (454.2 KB)

Right click the Line component, and choose “Set one Line” from the context menu. Then draw a line in world X direction to create the array of housing units. I’d have to put in some work to get it to do other directions, but the basics of the script are there.

1 Like

I love you thank you!