Placement of windows on the walls

Hello everyone
I am working on a set of 17 building typologies
the initial idea is that each apartment has two windows, one on the north facade and the other on the south facade
as I modeled, I realized that certain typologies cannot benefit from this arrangement of windows
so I’m looking if there is a possibility of building a script which goes in this direction of putting two windows in south and north as priority, and in cases where this is not possible, the script automatically puts these two windows in other directions
PS; although there are other apartments which only have one facade which faces the outside, so they will just have one window
I thank you in advance

Placement of windows on the walls.gh (229.0 KB)


Hi @fekrakamel

You can write a script to place windows wherever you want but this is not enough information to know what you mean:

For example, it’s not clear which of the “other directions” should be used first (eg. is the priority NSEW or NSWE).

Maybe this discussion where I wrote a Python script for Abraham to place windows according to custom logic might help you:

Maybe the docs of the dragonfly SDK are also helpful:

https://www.ladybug.tools/dragonfly-core/docs/