I am trying to develop a simple script that allows me to change the dimensions of windows and the distance between them on a roof plan. See image below for better explanation.
I’ve tried to put something together, not too sure about it though, it only allows me to control the window size but not the distance (I could control the number/count of segments). Find the GH file attached
Could someone please take a look on the script I’ve put together and advice on how to control the distance between the windows rather than number of segments?
and if there is a simpler way of putting this together, please let me know.
OUCH!!! Opening your model freezes up my computer. Grafting the ‘C’ input to ArrRec results in 3600 rectangles(!) which chokes SDiff. Warning to anyone who wants to open that file: disable GH solver first and then disable SDiff before doing anything else. Standby for a fix…
Just to expand a little on what the easter bunny has already delivered, you can only define the window size, as well as the window spacing, if you are willing to adapt your overall roof size to the resulting window layout.
If not, you have to make a choice, depending on what is more favourable for your project: either fixed window sizes, or fixed distances between the windows.
Do you understand all the details of the code I posted? And just what do you have in mind?
One obvious “improvement”(?) would be to make the distance at the edges be the same as the distance between windows in the middle, instead of only half that distance, as shown.
@Joseph_Oster Yes, I’ve picked that up, the unequal distance from the edges was one of the things I wasn’t sure how to fix, thanks!! I’m developing this to be used in a daylight study to optimise roof lights
One thing not sure I fully understand in the script is this, what do these two components do?