Selecting doors and windows from room X to room Y

Also a new issue came to the surface:
When I generate floortype X for room 1 and room 2, it’s fine.
But after that, if I generate a floortype Y for room 3 it deletes the floors in room 1 and room 2… :sob:

Topmost group ends with a List.MaximumByKey. Might ha e the node wrong as I am on mobile and can’t zoom enough it’s the last node though.

Swap that for a List.SortByKey (you’ll need to add a Surface.Area as the key), a List.Reverse, and a List.Decompose. List levels will matter for all of these. The first items are the larger polycurves which make up your outer boundaries. The rest are interior loops.

You should be able to figure out where to go from there.

This is element binding, and only an issue if you let it be.

Not sure if there are any spots left, but I am giving two bigger dives into this topic at AU Vegas this year. Search for Pandora’s Box if you’re interested.

1 Like

@jacob.small
Great, I completely understood your article about element binding and fixed it by deleting the bindings in notepad and now I can create multiple floor types for different rooms.
Unfortunately I don’t think I’ll have the time or money to go to Vegas any time soon (I’m from Europe). But I’m taking a local dynamo-class next month. :joy:

I’ll try out the suggestion for floor openings and get back to you if I’m stuck!

1 Like

@jacob.small
So far, I only managed to cut out 1 freestanding wall.
I don’t really get why it’s not doing both…


Likely list levels - also I am not sure if this will process two openings in the floor.

1 Like

If you have rooms (you have) in the model it will follow the contours of the walls, thats a good start .

It was the list levels, I messed around with it a little bit and this was the solution:


Now it generates openings for all the freestanding walls! :slight_smile:

1 Like

@jacob.small
I wanted to try adding 1 more thing, to create a floor at the room level but with a (negative) offset. But this node seems to not accept a negative offset like for example -200…
Capture19

Solved it with this:

1 Like

@jacob.small Just 1 last thing (I promise)
I also wanted the threshold of the windows that are sitting on that floor level…


I modified the ‘get threshold from doors’-part, but I don’t really know how to connect it to the List.AddItemToFront-node in the group called ‘Adds the room surface to the threshold surface’… Do I just double that group and in the first I add the door threshold and the one after that I add the window threshold? Because merging the 2 lists is probably not going to work…

Also the trick is selecting the windows by room, since the windows are not hosted in the wall bounding the room, but in the outside wall that is separate (but they are joined)… (that’s how our office models) Any idea’s?

Icky iky ick ick. That’s like bubblegum under a table at a restaurant for me - avoid at all costs… I know why some do though, so let me see what I can come up with.

Can you post the current dyn which shows how you are currently working with the windows. I’ll also need a .rvt that has stuff modeled per that two wall standard. You can just say ‘the old one is how we model stuff’ if that’s accurate, but then again my old method did grab windows in the rooms so I am guessing not.

Hahaha I completely knew this was going to be your response! I actually had a meeting about modelling like this yesterday :joy:

But, here is my progress on getting the windows, just don’t know how to add/connect to the rooms like the way you did with the doors…
FloorByRoomOptionalOffsetIncludingWindows.dyn (235.6 KB)

Revit for testing:

(for now only testing in room called ‘badkamer’)

EDIT: I also still need to change the part about getting the width of the window’s host, because of the different modelling, I need the width of the other walls and not window’s the host wall…

And also not the complete width, only up until the window

1 Like

@jacob.small
Small update: I managed to get the depth of the separate walls to get the distance to the window! (got the walls by joining them to the host and then get joined elements)
FloorByRoomOptionalOffsetIncludingWindows.dyn (257.7 KB)

Still struggling to connect to the surfaces though…

1 Like

Good work!

I have a fairly busy day, but I’ll set aside time in the afternoon or early evening to have a look.

@jacob.small
Thanks! I feel like I’m so close but nothing is working


(tried joining window threshold and door threshold before combining with room surfaces and it seems right but when I run, no windowthreshold…)

Still no progress… :confounded:


In the model it just doesn’t generate the window threshold…

Was a busy day so I haven’t had a chance to look at this. I’ll try to find time tomorrow.

1 Like

@jacob.small Still no progress on my side…

Sorry - been super tied up of late. Downloaded the files and will have a look at it this weekend.

1 Like