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.
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.
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.
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 ?
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.
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.