Creating Spaces from Rooms

it should work. What does the error say?

1 Like

Hi @amvincent_heapy_com

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


Warning: CustomRoom.FromElement operation failed.
An error occured

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…”.

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

1 Like

Create Spaces from Rooms.dyn (30.9 KB)

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 (2.0 MB)

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, and DynamoMEP version 0.5.1.

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):

1 Like

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.

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.

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


Please send me your private email. I can’t send it to you via the forums.


I’ve recreated the Graph and use Data Shapes instead in selecting the Linked Model, also adjusted the limit offset and Upper Limit.

SpacesFromRooms_AdjustLimitOffset.dyn (44.0 KB)

1 Like


After several problems and trouble shooting I managed to get my spaces from the linked file.

But they seem to be created out of where my model is. I dont know where i need to check or what parameter i need to change.

thanks in avance

Create a new post please.
This topic is very old, and a lot of new options have become available since.

I got help for the first set of issued i had in this other post

I’m sorry i didn’t know.

Sorry, I probably did not express myself correctly.

I meant, thank you!
I had also asked in a newer forum, which is the link I am sharing.

Im sitll having that issue of the wrong location. Thank you!

The link probably has a transform applied to it (moved by user). Search for topics about link transform/translate and you will find the method to correct this.

Maybe this one?