Area into sub-areas and select specific ones

Hello to everyone,

it seems like a trivial problem but I didnt manage to solve it by myself …

Basically, I would like to simulate a building in EnergyPlus where one facade has different wall constructions (e.g., an additional curtain wall, green facade, etc.). To achieve this, I created another rectangle on one side of the box, generated a series, and moved it upward. Later, I want to assign these surfaces a different construction (via Honeybee Face) than the rest of the surface.

My problem: Honeybee always reports an error “no closed volume” because the additional surfaces overlap with the surface behind them (it works, when I dont have them).

That is why I tried to subtract the sub-areas from the side surface of the box, but I havent managed to do that yet. How can I do it?

Later on, I also want to simulate different building heights (different numbers of floors). The sub-areas will automatically become more or fewer with the building height (one per floor). However, the side surface of the box always remains the same (No. 2 in the script). I dont know how to solve this.
I have copied the relevant parts of the script into a separate file and attached it.

20250926_Test_Cube_subtract_areas_McNeel.gh (25.7 KB)

I would greatly appreciate any help!

Best, M.

ungefähr so?

20250926_Test_Cube_subtract_areas_jvs01.gh (29.1 KB)

Yes nice, thanks a lot!

However, there is still a problem with the connection to honeybee as you can see here in the file:

20250926_Test_Cube_subtract_areas_jvs01_mh01.gh (33.1 KB)

Do you have an idea how to solve it?

I do not have, i do not know honeybee

20250926_Test_Cube_subtract_areas_jvs02.gh (35.1 KB)
but I it is running.

the trouble seems to be that the script can not handle empty lists….
so flattening helped;
clean tree does help as well
even more strange the script is running for every list. but it´s not when the first one is empty…
I think its a honeybug not a bee :wink:

Hello again,

thanks for the great support! During the last couple of weeks I couldnt continue working on my application for that. But it seems to work perfectly now. Thank you very much!