# Creating Spaces from Rooms

**URL:** <https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894>\
**Category:** Revit\
**Tags:** revit\
**Created:** [December 1, 2016, 4:07pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894 "2016-12-01T16:07:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![amvincent\_heapy\_com](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amvincent_heapy_com/32/17575_2.png) [@amvincent\_heapy\_com](https://forum.dynamobim.com/u/amvincent_heapy_com)\
**Post date:** [December 1, 2016, 4:07pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/1 "2016-12-01T16:07:08Z")

</div>

Hello, this is my first post. I’m really green with Dynamo and just trying to pick a task to start with. I’ve seen other posts on this forum about completing this task, and I’ve also read the blog post that a lot of other users refer to:

[http://bim42.com/2015/10/mep-design-and-dynamo/](http://bim42.com/2015/10/mep-design-and-dynamo/)

I’ve downloaded all the necessary packages, including dynamomep. The problem is; it seems like some of the nodes in dynamomep have been changed and renamed. Instead of “Room.FromElement” and “Room.LocationPoint”, they are now “Custom…”.

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/c/e/cea7c62d33a2b4472b61f3e8e31ff5110768c07e.png)

In the image above I have tried writing the code in two different ways and it breaks at the same spot, on the node in question.

Anyone have any advice on the new version of dynamomep, or some python script to use instead?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Michal\_Dengusiak](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/michal_dengusiak/32/92831_2.png) [@Michal\_Dengusiak](https://forum.dynamobim.com/u/Michal_Dengusiak)\
**Post date:** [December 1, 2016, 4:19pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/2 "2016-12-01T16:19:22Z")

</div>

Please check if they are design to your Dynamo version some packages are old and not updated to latest Dynamo when API code is changed will not work anymore.

PS. Not sure why I can not see image…? resolution seems to be high?

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/c/0/c01846a1e504d834dbe0ede24e7f13ab4cb43a80.jpg)

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/7/8/78b38d705b43cb23d5d9d8585de9fc8905f04150.png)

---

<div class="post-metadata">

**Author:** ![amvincent\_heapy\_com](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amvincent_heapy_com/32/17575_2.png) [@amvincent\_heapy\_com](https://forum.dynamobim.com/u/amvincent_heapy_com)\
**Post date:** [December 1, 2016, 4:33pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/3 "2016-12-01T16:33:00Z")

</div>

I will try to see if I can figure out what dynamo version DynamoMEP 0.5.1 is designed for, I’m not sure where to go to find that though. I’m currently running Dynamo 1.2.

As for the image, I exported it from dynamo. Not sure of the best way to get an image in here. Here is a snip of the topmost graph.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/4/9485eb93094a9bb5e7bf8e0856e8621f324e493f.JPG)

---

<div class="post-metadata">

**Author:** ![amvincent\_heapy\_com](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amvincent_heapy_com/32/17575_2.png) [@amvincent\_heapy\_com](https://forum.dynamobim.com/u/amvincent_heapy_com)\
**Post date:** [December 1, 2016, 4:52pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/4 "2016-12-01T16:52:47Z")

</div>

Update: looks like Room nodes were updated to Custom Room nodes two months ago for support for Dynamo 1.2. I’ve submitted an issue to github, we shall see. In the mean time, anyone have some python code I can use? I heard reference of it in another forum post.

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [December 1, 2016, 4:55pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/5 "2016-12-01T16:55:14Z")

</div>

first and foremost resolve the issue with null return from GetElementsFromLinkedFile node. That will stop everything from execution downstream.

---

<div class="post-metadata">

**Author:** ![amvincent\_heapy\_com](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amvincent_heapy_com/32/17575_2.png) [@amvincent\_heapy\_com](https://forum.dynamobim.com/u/amvincent_heapy_com)\
**Post date:** [December 1, 2016, 5:01pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/6 "2016-12-01T17:01:16Z")

</div>

Thank you Konrad. Increasing the Integer slider alleviated that issue.

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

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [December 1, 2016, 5:03pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/7 "2016-12-01T17:03:52Z")

</div>

Now, as far as I am aware what you have retrieved is Rooms that exist in LINKED MODEL. They don’t actually exist in the model that you are trying to create spaces. Are you sure that CustomRoom nodes are able to use Rooms from linked models to create rooms in current model? I doubt it.

---

<div class="post-metadata">

**Author:** ![amvincent\_heapy\_com](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amvincent_heapy_com/32/17575_2.png) [@amvincent\_heapy\_com](https://forum.dynamobim.com/u/amvincent_heapy_com)\
**Post date:** [December 1, 2016, 5:08pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/8 "2016-12-01T17:08:14Z")

</div>

I’m not sure it does either, according to the github: “Rename Room to CustomRoom to manage built-in Room node”.

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/e/0/e0c2be1a02e6540af579ae9cd680da28c9c8d76a.png)

I don’t see any further documentation on how the rename of the custom node affects it’s performance.

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [December 1, 2016, 5:11pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/9 "2016-12-01T17:11:55Z")

</div>

it should work. What does the error say?

---

<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:** [December 1, 2016, 5:30pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/10 "2016-12-01T17:30:28Z")

</div>

Hi @amvincent_heapy_com

You need to get room locations from linked files and then create spaces.

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

---

<div class="post-metadata">

**Author:** ![amvincent\_heapy\_com](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amvincent_heapy_com/32/17575_2.png) [@amvincent\_heapy\_com](https://forum.dynamobim.com/u/amvincent_heapy_com)\
**Post date:** [December 1, 2016, 6:27pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/11 "2016-12-01T18:27:48Z")

</div>

Warning: CustomRoom.FromElement operation failed.  
An error occured

---

<div class="post-metadata">

**Author:** ![amvincent\_heapy\_com](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amvincent_heapy_com/32/17575_2.png) [@amvincent\_heapy\_com](https://forum.dynamobim.com/u/amvincent_heapy_com)\
**Post date:** [December 1, 2016, 6:37pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/12 "2016-12-01T18:37:33Z")

</div>

Kulkul, I’ve seen a screenshot of this in a previous forum post. The problem is that Room.FromElement and Room.LocationPoint are no longer in DynamoMEP. They are now “Custom…”.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/a/6ac579cd95b23f544e43451c72ce712d2f9c5232.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:** [December 1, 2016, 6:39pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/13 "2016-12-01T18:39:28Z")

</div>

@amvincent_heapy_com Could you please drop your files here. We will have closer look at it. Thanks 🙂

---

<div class="post-metadata">

**Author:** ![amvincent\_heapy\_com](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amvincent_heapy_com/32/17575_2.png) [@amvincent\_heapy\_com](https://forum.dynamobim.com/u/amvincent_heapy_com)\
**Post date:** [December 1, 2016, 6:47pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/14 "2016-12-01T18:47:09Z")

</div>

[Create Spaces from Rooms.dyn](https://forum.dynamobim.com/uploads/short-url/orpme5saDprkvATjb0oH56Sqn3t.dyn) (30.9 KB)

---

<div class="post-metadata">

**Author:** ![amvincent\_heapy\_com](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amvincent_heapy_com/32/17575_2.png) [@amvincent\_heapy\_com](https://forum.dynamobim.com/u/amvincent_heapy_com)\
**Post date:** [December 1, 2016, 7:23pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/15 "2016-12-01T19:23:34Z")

</div>

Here it is again. A co-worker helped me, it seems to be working. Now I just need to do some clean-up and see what else can be added in. [Create Spaces from Rooms.dyn](https://forum.dynamobim.com/uploads/short-url/ih4qyAmQNGF7MRshRQBiF1qTi8M.dyn) (2.0 MB)

---

<div class="post-metadata">

**Author:** ![Skier809](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Skier809](https://forum.dynamobim.com/u/Skier809)\
**Post date:** [January 5, 2017, 8:06pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/16 "2017-01-05T20:06:08Z")

</div>

What did you have to do to get it to work properly? I am having the same issue with the DynamoMEP CustomRoom nodes failing. I am running Revit 2017, Dynamo 1.2.1.3083, and DynamoMEP version 0.5.1.

---

<div class="post-metadata">

**Author:** ![smbrennan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/smbrennan/32/23812_2.png) [@smbrennan](https://forum.dynamobim.com/u/smbrennan)\
**Post date:** [May 25, 2017, 1:45pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/17 "2017-05-25T13:45:38Z")

</div>

Wow, talk about an over-complicated code. As someone new to Dynamo myself, I can appreciate all of the help you’re getting. Let me chime in with this gem I came across (only uses 8 nodes):

> **[Use Dynamo to Sync Room Names & Numbers with Space Names & Numbers | Revit...](https://knowledge.autodesk.com/support/revit-products/getting-started/caas/screencast/Main/Details/de3f03a3-6b9f-41b3-a9c8-b32f1a6caf74.html)**
>
> Dynamo is not just for elaborate 3D models, it can be a great time saver for Data Management within your Revit Projects, in this Screencast see how Drew Jarvis from Cansel in Vancouver BC uses Dynamo to Sync Room Names & Numbers with Space Names &...

---

<div class="post-metadata">

**Author:** ![amvincent\_heapy\_com](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amvincent_heapy_com/32/17575_2.png) [@amvincent\_heapy\_com](https://forum.dynamobim.com/u/amvincent_heapy_com)\
**Post date:** [June 7, 2017, 7:21pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/18 "2017-06-07T19:21:23Z")

</div>

Good find Shawn, pretty cool. What I was mostly hoping to accomplish though is creating a code that places a space on top of each room regardless of phase or level. Getting a space on each room can be a painstaking and tedious process sometimes on a more complicated project that has multiple phases and various levels.

---

<div class="post-metadata">

**Author:** ![piotr.szumski91](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@piotr.szumski91](https://forum.dynamobim.com/u/piotr.szumski91)\
**Post date:** [January 15, 2019, 12:22pm UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/19 "2019-01-15T12:22:41Z")

</div>

I managed to clean up the attatched script and now it works like a charm. Only drawback is that it creates spaces with default height (400 cm). It does not copy exactly the rooms from liked files. So if you have an elevator or stairs you need to adjust manually.

 ![rooms%20from%20spaces](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/a/8a44b3042704a12741dcf2369525db868283cf21.jpeg)

---

<div class="post-metadata">

**Author:** ![Bhishma](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bhishma/32/72978_2.png) [@Bhishma](https://forum.dynamobim.com/u/Bhishma)\
**Post date:** [May 7, 2019, 11:54am UTC](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894/20 "2019-05-07T11:54:49Z")

</div>

@piotr.szumski91  
Can You share the updated script please? I am trying to convert rooms into space.

Thanks,  
Bhishma

[Next page](https://forum.dynamobim.com/t/creating-spaces-from-rooms/7894.md?page=2)
