# Relate doors with rooms

**URL:** <https://forum.dynamobim.com/t/relate-doors-with-rooms/9500>\
**Category:** Revit\
**Created:** [February 9, 2017, 2:28pm UTC](https://forum.dynamobim.com/t/relate-doors-with-rooms/9500 "2017-02-09T14:28:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akserrado](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@akserrado](https://forum.dynamobim.com/u/akserrado)\
**Post date:** [February 9, 2017, 2:28pm UTC](https://forum.dynamobim.com/t/relate-doors-with-rooms/9500/1 "2017-02-09T14:28:19Z")

</div>

Hi guys,

I’m trying to relate the doors with the rooms and to generate a schedule on excel, but till now I only be able to relate the number of the room and the number of the door. I’m going to put some pictures to explain better.

In the room name column I want the name of the room where the door is inserted to appear, but Dynamo was not able to relate them correctly.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/9/a9374033f818f168717f2fe581a2a99ea8126a91.png) ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/7/f7262f0c784a6ac617a11b612cc0a2406092210e.png) ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/1/d17b12ad932b17c8ead1ee539df0a282e62986c7.png) ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/d/adb255449c02670e575edfdc12b249102b69bf62.png)

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [February 9, 2017, 3:04pm UTC](https://forum.dynamobim.com/t/relate-doors-with-rooms/9500/2 "2017-02-09T15:04:50Z")

</div>

@akserrado Try using List.SortByKey.  
Hope the below example helps convey the idea…

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

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [February 9, 2017, 3:30pm UTC](https://forum.dynamobim.com/t/relate-doors-with-rooms/9500/3 "2017-02-09T15:30:22Z")

</div>

Hi @akserrado

Here is another possible way using custom nodes clockwork and steam nodes package.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/a/a877c4e36e453dc5c0f02784a3ee533527f5a159.png)
