# Create Floors By Room using Room Information and Floor Type

**URL:** <https://forum.dynamobim.com/t/create-floors-by-room-using-room-information-and-floor-type/26758>\
**Category:** Revit\
**Tags:** revit\
**Created:** [October 2, 2018, 8:31pm UTC](https://forum.dynamobim.com/t/create-floors-by-room-using-room-information-and-floor-type/26758 "2018-10-02T20:31:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndriaLynch](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@AndriaLynch](https://forum.dynamobim.com/u/AndriaLynch)\
**Post date:** [October 2, 2018, 8:31pm UTC](https://forum.dynamobim.com/t/create-floors-by-room-using-room-information-and-floor-type/26758/1 "2018-10-02T20:31:16Z")

</div>

Below is the definition I am working on. I can successfully create floors by room with giving a specific floor type, but I would like Dynamo to read the parameter information in the Floor Finish Room information, find the Floor Type that contains that language and create the floor. If I name the floor type the same name as the floor finish parameter in the room information, it will work, but I would like to say “if the floor type contains this text provided in the Finish Floor room information, then use this floor type.”

I am also having trouble with this definition in rooms where there are columns as room bounding objects (the poly of the room outline has additional polys inside). It will not place a floor in these instances.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/d/0df3d08bff0602d2af2970afd3f5f78e6ddda59a.png) [Floor By Room\_By Floor Finish.dyn](https://forum.dynamobim.com/uploads/short-url/aLYJXSIjUOqmoX2I4243mOVLJBz.dyn) (30.8 KB)

---

<div class="post-metadata">

**Author:** ![lucamanzoni](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lucamanzoni/32/56718_2.png) [@lucamanzoni](https://forum.dynamobim.com/u/lucamanzoni)\
**Post date:** [October 3, 2018, 6:39am UTC](https://forum.dynamobim.com/t/create-floors-by-room-using-room-information-and-floor-type/26758/2 "2018-10-03T06:39:25Z")

</div>

If your Finish Name and your Floor Name are the same, you can use List.AllIndiceOf to get the index number associated:

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

If your Finish Name and Floor Name don’t match, you can rename them.

If you can’t rename them, you need to use more advanced filtering techniques, with StringContains for example, but the definition will be more complex

For your second problem I would open a different topic, maybe someone can help

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [October 3, 2018, 6:48am UTC](https://forum.dynamobim.com/t/create-floors-by-room-using-room-information-and-floor-type/26758/3 "2018-10-03T06:48:10Z")

</div>

For the second problem, a possible solution would be to find the closed curves, make a surface, take the area, and use only the largest area’s curves as the curve input.

I can’t remember whose package contains the group by closed curves node but I am sure you could search for it here.

---

<div class="post-metadata">

**Author:** ![lucamanzoni](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lucamanzoni/32/56718_2.png) [@lucamanzoni](https://forum.dynamobim.com/u/lucamanzoni)\
**Post date:** [October 4, 2018, 8:35am UTC](https://forum.dynamobim.com/t/create-floors-by-room-using-room-information-and-floor-type/26758/4 "2018-10-04T08:35:19Z")

</div>

Here a better solution, useful when your Floor Name and Finish Name don’t match exactly.  
For node String.Contains you have to use Cross Product Lacing.  
I think this is what you were looking for:

 ![FloorByFinish2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/0/60d92d6d7b940eeb4e8f7a311d39c1aef2449122.png)

---

<div class="post-metadata">

**Author:** ![lucamanzoni](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lucamanzoni/32/56718_2.png) [@lucamanzoni](https://forum.dynamobim.com/u/lucamanzoni)\
**Post date:** [October 4, 2018, 6:54pm UTC](https://forum.dynamobim.com/t/create-floors-by-room-using-room-information-and-floor-type/26758/5 "2018-10-04T18:54:24Z")

</div>

@AndriaLynch Does it work? If yes, please mark the topic as solved 🙂
