# Length and Width of room: script works in one project but not

**URL:** <https://forum.dynamobim.com/t/length-and-width-of-room-script-works-in-one-project-but-not/41088>\
**Category:** Uncategorized\
**Created:** [September 25, 2019, 7:37pm UTC](https://forum.dynamobim.com/t/length-and-width-of-room-script-works-in-one-project-but-not/41088 "2019-09-25T19:37:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaysyn\_Quarry](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@Jaysyn\_Quarry](https://forum.dynamobim.com/u/Jaysyn_Quarry)\
**Post date:** [September 25, 2019, 7:37pm UTC](https://forum.dynamobim.com/t/length-and-width-of-room-script-works-in-one-project-but-not/41088/1 "2019-09-25T19:37:10Z")

</div>

So I followed the instruction from this Autodesk video: [https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/simplecontent/content/use-dynamo-to-report-room-width-and-length-revit-room-tag.html](https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/simplecontent/content/use-dynamo-to-report-room-width-and-length-revit-room-tag.html)

My script works just fine in one project, but not in another project. I am getting an empty list error. How can I fix it?

script with error:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/a/4a3b85815f9c6865623a638d06444143e039bc9e.png)

script without error:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/f/ffd081107ece4d55eea6c9fa7ae243d7b4792071.png)

Again, this is the same Dynamo script being run on two different projects.

What is causing the empty list??

Thanks

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [September 26, 2019, 2:50am UTC](https://forum.dynamobim.com/t/length-and-width-of-room-script-works-in-one-project-but-not/41088/2 "2019-09-26T02:50:36Z")

</div>

This is likely caused by a room which is unplaced, or a room which is unbound. Check the area of the rooms in Dynamo and filter rooms with an area !\> 0. Also it’s best practice to make sure you are reviewing a room schedule with no filters periodically to ensure these are taken care of in the project.

---

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [September 27, 2019, 5:07am UTC](https://forum.dynamobim.com/t/length-and-width-of-room-script-works-in-one-project-but-not/41088/3 "2019-09-27T05:07:15Z")

</div>

I would add here that I often include an additional check to see if a room.Location point !null because I have seen rooms get sandwiched under finish floors and slabs that are bounding but don’t have area. Not super critical, but has saved me before.

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [September 27, 2019, 5:51am UTC](https://forum.dynamobim.com/t/length-and-width-of-room-script-works-in-one-project-but-not/41088/4 "2019-09-27T05:51:06Z")

</div>

There’s a node in the Data-Shapes package that filters them out for you

---

<div class="post-metadata">

**Author:** ![Jaysyn\_Quarry](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@Jaysyn\_Quarry](https://forum.dynamobim.com/u/Jaysyn_Quarry)\
**Post date:** [October 24, 2019, 6:26pm UTC](https://forum.dynamobim.com/t/length-and-width-of-room-script-works-in-one-project-but-not/41088/5 "2019-10-24T18:26:29Z")

</div>

Just to close the loop. At least in my case.

After I cleaned out all the unplaced rooms, it all worked.

Thanks for your help!

I will look at that Data|Shapes node. Any idea which one it is specifically @Daniel_Hurtubise?

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [October 24, 2019, 8:27pm UTC](https://forum.dynamobim.com/t/length-and-width-of-room-script-works-in-one-project-but-not/41088/6 "2019-10-24T20:27:35Z")

</div>

It’s called Room Status
