# Room to Mass Issue

**URL:** <https://forum.dynamobim.com/t/room-to-mass-issue/4093>\
**Category:** Packages\
**Created:** [May 20, 2016, 4:29pm UTC](https://forum.dynamobim.com/t/room-to-mass-issue/4093 "2016-05-20T16:29:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Schalnat](https://avatars.discourse-cdn.com/v4/letter/t/8e8cbc/32.png) [@Thomas\_Schalnat](https://forum.dynamobim.com/u/Thomas_Schalnat)\
**Post date:** [May 20, 2016, 4:29pm UTC](https://forum.dynamobim.com/t/room-to-mass-issue/4093/1 "2016-05-20T16:29:41Z")

</div>

Hi Guys,

I’m having some issues with a room to mass script I’m trying to write. I’m having issues importing the geometry into revit. I think it has something to do with the warning I’m getting @ the Element.Geometry node. The error says “Value cannot be Null”. I have tried filtering the list with a boolean mask but that had no affect. I can see what I want in the model space of dynamo but it doesn’t appear in revit.

[Room to Mass - Test 1.dyn](https://forum.dynamobim.com/uploads/short-url/4Pc1GQthQpCXjqzQLxZWRQcv8Pk.dyn) (11.8 KB)

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

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [May 20, 2016, 6:31pm UTC](https://forum.dynamobim.com/t/room-to-mass-issue/4093/2 "2016-05-20T18:31:25Z")

</div>

Do you have any “unplaced” rooms in your model?

---

<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:** [May 21, 2016, 6:57am UTC](https://forum.dynamobim.com/t/room-to-mass-issue/4093/3 "2016-05-21T06:57:41Z")

</div>

Hi Thomas,

Remove null values. See it works!

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

---

<div class="post-metadata">

**Author:** ![Thomas\_Schalnat](https://avatars.discourse-cdn.com/v4/letter/t/8e8cbc/32.png) [@Thomas\_Schalnat](https://forum.dynamobim.com/u/Thomas_Schalnat)\
**Post date:** [May 23, 2016, 4:08pm UTC](https://forum.dynamobim.com/t/room-to-mass-issue/4093/4 "2016-05-23T16:08:01Z")

</div>

I found the guilty room but I’m still not able to figure out what is wrong with it at this point in time. It is placed but returns a null value when ran through the Element.Geometry node. Might be more of a revit issue with the room than dynamo. I will continue to investigate. The script works fine when I run the list.clean node.

Any suggestions on a way to create the masses that give me more control once they are in revit? I would like to be able to apply a material to them.

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [May 23, 2016, 5:08pm UTC](https://forum.dynamobim.com/t/room-to-mass-issue/4093/5 "2016-05-23T17:08:27Z")

</div>

Is the room uncontained or unbounded?

---

<div class="post-metadata">

**Author:** ![b.kamaro](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@b.kamaro](https://forum.dynamobim.com/u/b.kamaro)\
**Post date:** [October 19, 2016, 8:02pm UTC](https://forum.dynamobim.com/t/room-to-mass-issue/4093/6 "2016-10-19T20:02:25Z")

</div>

Hello. I’m new on Dynamo and i want to execute your script.  
Which version of Dynamo do you have?  
I tried your script and I found out that the node “List.MatchWithKeyValues” doesn’t seem to work with the last version of Dynamo (1.2.0). It says "the definition of the node is not charged"  
So i looked for the node’s latter package, got the CAAD\_RWTH version 0.1.4, installed it:  
But now the problem is that the node can’t be opened by this version of dynamo.

I wonder if there is another way to transform rooms to masses without using “List.MatchWithKeyVAlues”?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![b.kamaro](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@b.kamaro](https://forum.dynamobim.com/u/b.kamaro)\
**Post date:** [November 28, 2016, 10:26am UTC](https://forum.dynamobim.com/t/room-to-mass-issue/4093/7 "2016-11-28T10:26:51Z")

</div>

Hello everyone. I successfully created and colored masses from rooms’ parameters. Thanks for the script.  
Is there any way to get the graph legend? (that can explain the meaning of the color on each mass…)

---

<div class="post-metadata">

**Author:** ![a.sayedahmed](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/a.sayedahmed/32/39299_2.png) [@a.sayedahmed](https://forum.dynamobim.com/u/a.sayedahmed)\
**Post date:** [January 15, 2018, 1:01pm UTC](https://forum.dynamobim.com/t/room-to-mass-issue/4093/8 "2018-01-15T13:01:01Z")

</div>

Hello, Is it possible to create a mass for a specific room from a Revit (2016) model while keeping the rest of the building model in wireframe format using Dynamo (1.3.2)?

Thank you,
