# Sorting list of rooms and list of floors without another help parameter

**URL:** <https://forum.dynamobim.com/t/sorting-list-of-rooms-and-list-of-floors-without-another-help-parameter/8252>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [December 15, 2016, 9:30am UTC](https://forum.dynamobim.com/t/sorting-list-of-rooms-and-list-of-floors-without-another-help-parameter/8252 "2016-12-15T09:30:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukas\_Tunka](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lukas_tunka/32/15218_2.png) [@Lukas\_Tunka](https://forum.dynamobim.com/u/Lukas_Tunka)\
**Post date:** [December 15, 2016, 9:30am UTC](https://forum.dynamobim.com/t/sorting-list-of-rooms-and-list-of-floors-without-another-help-parameter/8252/1 "2016-12-15T09:30:47Z")

</div>

Hi DYNAMO community,

I’ve a question about the node Geometry.DoesIntersect. I’ve used this node for intersection detection, but nothing happened after I’ve started the calculation, just for the first time it has detected everything correctly, but at the second attempt it doesn’t. It’s there any problem with this node or is the problem just in my hands? See below the print screen of the algorithm:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/c/7c3d0bba158bef226d1d08076bd08935ad250a4c.png)

There is the short description what I want to achieve:  
Standardly the room in Revit is calculating just usable area, but I need the floor area, in other words I need add the area of niches, recessed doors and so on. So I’ve created solids from rooms and also from floors, and from intersection of these solids I’ve created a filter mask and that helped me to paired room with right floor and get the right area from the floor to the room. That’s it, that’s my goal. But the node Geometry.DoesIntersect has a different opinion…

It’s there anybody who has dealt with the same problem or it’s able to help me to solve this problem? It will be great.

[HERE](http://a360.co/2hQH2t4) you can download the RVT and also the DYN file form my A360 DRIVE.

Lukas

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [December 15, 2016, 11:14am UTC](https://forum.dynamobim.com/t/sorting-list-of-rooms-and-list-of-floors-without-another-help-parameter/8252/2 "2016-12-15T11:14:19Z")

</div>

Hello, first of all thanks for sharing. When I try to run your script, I get a problem here (the floors seem to have no values for this parameter):

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/d/9d189d2027858cd927d8097d83d09e03f7f753bf.JPG)  
Not sure it can be ran with an english software version…

---

<div class="post-metadata">

**Author:** ![Lukas\_Tunka](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lukas_tunka/32/15218_2.png) [@Lukas\_Tunka](https://forum.dynamobim.com/u/Lukas_Tunka)\
**Post date:** [December 15, 2016, 11:34am UTC](https://forum.dynamobim.com/t/sorting-list-of-rooms-and-list-of-floors-without-another-help-parameter/8252/3 "2016-12-15T11:34:37Z")

</div>

Hi,

thanks for your reply, it should be functional in English version, but you need to change the value in CODE BLOCK. There is written **“Tloušťka”** and you need to replace with this value **„Thickess“**. That’s a system parametr. I completely forgot the mention it.

Lukas

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [December 15, 2016, 1:54pm UTC](https://forum.dynamobim.com/t/sorting-list-of-rooms-and-list-of-floors-without-another-help-parameter/8252/4 "2016-12-15T13:54:34Z")

</div>

Ok, then I guess _Číslo_ = _Number_ , _Plocha_ = _Area_ , _Podlahová plocha_ = _Floor Area_ (but it doesn’t exist as a parameter) and _Typ Podlahy_ stays as it is because it does exist in the list of parameters (but returns no values in my case)?  
Wouldn’t it be easier to translate it yourself to avoid errors and lost of time?.. 😏  
Here is the list of floors parameters (first item):

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/1/d12e1c04a61b6797f76800d3c85ebf417068406d.JPG)

---

<div class="post-metadata">

**Author:** ![Lukas\_Tunka](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lukas_tunka/32/15218_2.png) [@Lukas\_Tunka](https://forum.dynamobim.com/u/Lukas_Tunka)\
**Post date:** [December 15, 2016, 4:01pm UTC](https://forum.dynamobim.com/t/sorting-list-of-rooms-and-list-of-floors-without-another-help-parameter/8252/5 "2016-12-15T16:01:45Z")

</div>

You’re right, I’ve translated everything into English, and here is the [LINK](http://a360.co/2hRXgC2). But anyway I’ve made some progress with my algorithm I’ve actually solved the problem with intersection, but I’ve found another one. I want to sort rooms and floor according the intersection of the solid that I’ve created, but I don’t know how. I use List.Map but they don’t line up correctly. What do you think is that possible?

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [December 15, 2016, 4:04pm UTC](https://forum.dynamobim.com/t/sorting-list-of-rooms-and-list-of-floors-without-another-help-parameter/8252/6 "2016-12-15T16:04:17Z")

</div>

What do you mean by “intersection”, is it a value, a boolean…?  
To sort list of elements by a parameter value, I usually recommend the SortByFunction node.  
I’ll take a look at this a litlle later…

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [December 15, 2016, 5:33pm UTC](https://forum.dynamobim.com/t/sorting-list-of-rooms-and-list-of-floors-without-another-help-parameter/8252/7 "2016-12-15T17:33:53Z")

</div>

Hello again, unfortunately, I can’t make your graph working and neither can I read your titles. To make it easy to solve, I would suggest to drop a screenshot showing the exact problematic point (and maybe also start a new thread, with a new title…) Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Lukas\_Tunka](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lukas_tunka/32/15218_2.png) [@Lukas\_Tunka](https://forum.dynamobim.com/u/Lukas_Tunka)\
**Post date:** [December 15, 2016, 7:41pm UTC](https://forum.dynamobim.com/t/sorting-list-of-rooms-and-list-of-floors-without-another-help-parameter/8252/8 "2016-12-15T19:41:45Z")

</div>

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/3/e318ac73c3d9fed2f84dc82d63a4f1a7dc38aba8.png)

Very kind thank you for your time, I mean this: If I have list of rooms and list of floors in a certain order so I was thinking that I’ll find a way how to easy and without another parameters to sort this two lists and I wanted to use the intersections of solids that I created form floors and rooms. So I wanted to uses Boolean. So what do you think, it’s possible to do it? I cannot use Bounding box because the rooms have irregular shapes.

Lukas

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [December 15, 2016, 9:23pm UTC](https://forum.dynamobim.com/t/sorting-list-of-rooms-and-list-of-floors-without-another-help-parameter/8252/9 "2016-12-15T21:23:55Z")

</div>

This is very nice but I still can not read your titles in Czech 😕. So, if you want to sort lists with boolean, I assume that you’re just going to get two lists, one from true values and one from false. I guess that you would rather like to map the two lists together, rooms with corresponding floors. In this case, I would first try with the _Collector.RoomFromElements_ from _BlackBox_, for instance…
