Give parameter from place within bounding box

revit
roomboundaries

#1

Hi there!

I have tried working a whole lot with roomcalculation points, and have thereby found that they do not find rooms from linked files…

Therefore I have tried going about it, via Dynamo. So what I have done is get the rooms, from the linked file, where I get their bounding box coordinates. Afterwards I have collected the coordinates from the airterminals, that i want the roomnumbers written to. Tried to use the function “bounding box contains” to see, if the airterminal is inside the room, whereafter i want dynamo to write the roomnumber wherein the airterminal is. But I have no clue, if I am going about this the wrong way. Here is my graph:

Here is the place I think it all goes wrong, beacue it only finds one room :slight_smile:

Here is a picture of my ceiling plan, which has the airterminals and the room I want it to belong to:

Please help!


#2

Hi, @bjkris

The boundingbox is always rectangular, what do you do when the room is L-shaped?

Maybe this will help

PS. Nodes are from springs package
I hope your Rooms have the correct height


#3

Hi @bjkris,

I don’t think Bounding box is the easiest way to achieve you goal.

I would use Elements in Room node from archilab :


#4

Hi there @Alban_de_Chasteigner

I have tried your version, but I get these errors?

The complete Graph:


#5

The node Elements in Room doesn’t work with curves (pipes, ducts, cabletrays…)
But in your original post you talaked about the airterminals.
So first does it work well with the airterminals ?


#6

Ahhh! Will return shortly :slight_smile:


#7

Now on the “Air terminals” Again @Alban_de_Chasteigner

But It looks like I only get one room, is that supposed to happen?


#8

There is an error in the List.empty node. You have to set lacing on longest.

If you don’t have empty list under the Elements in Room node, the part with list.clean, List.Empty and FilterbyBool is useless.


#9

Ahh! @Alban_de_Chasteigner Your my hero! :slight_smile:


#10

You are welcome !

For the pipes, please start a new topic because it will be more complicated.
A unique pipe can be in various rooms.


#11

@Alban_de_Chasteigner Maby I was a bit to hasty there… :confused:

When I select some of my air terminals, in the model and look at their roomnumbers it has the wrong roomnumber…!

Here I have two of the air terminals and their roomnumbers:

Here I have the roomnumber of the room:

HMMM…??


#12

Did you notice the lacing longest on the Setparameter node ?

Can you show all your graph with previews under List.filter and Setparameter nodes ?


#13

Hi there again @Alban_de_Chasteigner

It was the “lacing - longest” that made the error! So thank you so much, this will help me so much :slight_smile:


#14

Do you know of another topic, where a graph with pipes is shown.?