# Create floor by room, how

**URL:** <https://forum.dynamobim.com/t/create-floor-by-room-how/64333>\
**Category:** Revit\
**Created:** [May 25, 2021, 12:40pm UTC](https://forum.dynamobim.com/t/create-floor-by-room-how/64333 "2021-05-25T12:40:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [May 25, 2021, 12:40pm UTC](https://forum.dynamobim.com/t/create-floor-by-room-how/64333/1 "2021-05-25T12:40:49Z")

</div>

[CreateFloor.dyn](https://forum.dynamobim.com/uploads/short-url/dTFl31ysEYMZqruidYHNqCRyBME.dyn) (33.3 KB)

 ![createFloor](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/e/4e7707e9b6a086b2c573ff746aca5e3be135fced.png)  
Hello,

I stuck for any reason, so finaly it is not creating my floors based on my script, why?

KR

Andreas  
[Project1\_2022.rvt](https://forum.dynamobim.com/uploads/short-url/4r46JBZJ1fSIvi1HMrPrgZgiNe7.rvt) (1.6 MB)

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [May 25, 2021, 7:05pm UTC](https://forum.dynamobim.com/t/create-floor-by-room-how/64333/2 "2021-05-25T19:05:15Z")

</div>

What error do the **Room.BoundaryCurves** and **Floor.ByOutline** (?since the node names are not readable?

Are the Curves of the Rooms 1 single loop?  
Are they not intersecting?  
Are they joinable into a single PolyCurve **PolyCurveByJoinedCurves**

I think there must be something from with the rooms (happens most of the time)  
I cant open you model myself, since I dont have Revit 2022 yet. Do you have a 2021 version?

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [May 26, 2021, 7:27am UTC](https://forum.dynamobim.com/t/create-floor-by-room-how/64333/3 "2021-05-26T07:27:07Z")

</div>

Are the Curves of the Rooms 1 single loop?  
-they are single loops  
Are they not intersecting?  
-they do not intersect  
Are they joinable into a single PolyCurve **PolyCurveByJoinedCurves**

I think there must be something from with the rooms (happens most of the time)  
I cant open you model myself, since I dont have Revit 2022 yet. Do you have a 2021 version?  
-when i find time a can create a project in 2021  
[/quote]  
[Projekt\_room.rvt](https://forum.dynamobim.com/uploads/short-url/sWJY2E6VGL88ePZ5p3KHY1sQ93D.rvt) (372 KB)

---

<div class="post-metadata">

**Author:** ![hoangtran](https://avatars.discourse-cdn.com/v4/letter/h/258eb7/32.png) [@hoangtran](https://forum.dynamobim.com/u/hoangtran)\
**Post date:** [May 26, 2021, 8:48pm UTC](https://forum.dynamobim.com/t/create-floor-by-room-how/64333/4 "2021-05-26T20:48:51Z")

</div>

Your List.IndexOf node is trying to look for indices of rooms in a list of floors’ keynotes. You need to have similar data types for this nodes to cross check between lists.

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

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [May 27, 2021, 1:09am UTC](https://forum.dynamobim.com/t/create-floor-by-room-how/64333/5 "2021-05-27T01:09:13Z")

</div>

Maybe this might help… this is the method I use.

[![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/1/414847aca7ca6fba232db7fa46fd9e00be126651.jpeg "Floor Finishes by Room using Dynamo!") ](https://www.youtube.com/watch?v=clbLlYbJ_Sc)
