# Obtain Space for Pipes

**URL:** <https://forum.dynamobim.com/t/obtain-space-for-pipes/14103>\
**Category:** Revit\
**Created:** [August 18, 2017, 12:04pm UTC](https://forum.dynamobim.com/t/obtain-space-for-pipes/14103 "2017-08-18T12:04:17Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [August 18, 2017, 12:04pm UTC](https://forum.dynamobim.com/t/obtain-space-for-pipes/14103/1 "2017-08-18T12:04:17Z")

</div>

Wondering if Element.space not working for pipe/ pipe fitting elements? Is there an obvious reason or I am missing something?

I want the pipes to report the room they are in.

I understand they are not like loadable families to have a room calculation point - but how do i get their space.

I have tried the tool get surrounding elements but my definition is taking forever and look to make it leaner.

Regards,

John

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [August 18, 2017, 12:31pm UTC](https://forum.dynamobim.com/t/obtain-space-for-pipes/14103/2 "2017-08-18T12:31:42Z")

</div>

Because pipes can be in multiple spaces at once there is no Space property for them.  
To get the desired space you will have to specify a point on the pipe and then use that point to figure out which space the pipe is in.  
You can get the space of a point with the following node from the MEPover package:  
 ![image](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/9/3/93683613713b11ecc41ecc27ae2498473d7952fb.png)

I made a little post about this a while back:  
[https://ibl.nl/bim/room-calculation-points-for-everybody.html](https://ibl.nl/bim/room-calculation-points-for-everybody.html)

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [August 18, 2017, 12:45pm UTC](https://forum.dynamobim.com/t/obtain-space-for-pipes/14103/3 "2017-08-18T12:45:45Z")

</div>

Thats a very interesting and clever solution. Well done and thanks!

One point before i close this - you use a node called Element.GetLocation which must have been superseeded.

Is equivalent to element get geometry i.e. get the geometry of my model into Dynamo ?

Thanks

John

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [August 18, 2017, 12:56pm UTC](https://forum.dynamobim.com/t/obtain-space-for-pipes/14103/4 "2017-08-18T12:56:04Z")

</div>

@T_Pover Any ideas why it doesnt read the coordinates?

Error: ![ERror](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/c/6c0a8b93607f6b9d25c075bd882d68bbba31df70.png)

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [August 18, 2017, 1:01pm UTC](https://forum.dynamobim.com/t/obtain-space-for-pipes/14103/5 "2017-08-18T13:01:11Z")

</div>

You are inputting solids instead of points. The Element.GetLocation node has been a standard node for a while now. Are you using an older version of Dynamo?  
You can also you Clockwork’s Location node as alternative.  
 ![image](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/1/6/16e09275c5c045be1709f2da35217de9406e39c4.png)

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [August 18, 2017, 1:05pm UTC](https://forum.dynamobim.com/t/obtain-space-for-pipes/14103/6 "2017-08-18T13:05:23Z")

</div>

Ofcourse! Been a while since i used it.

Thank you T\_Pover!

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [August 18, 2017, 1:32pm UTC](https://forum.dynamobim.com/t/obtain-space-for-pipes/14103/7 "2017-08-18T13:32:29Z")

</div>

I dont have any phase on my elements. is that an issue?

I cant satisfy your Phase Input

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [August 18, 2017, 1:41pm UTC](https://forum.dynamobim.com/t/obtain-space-for-pipes/14103/8 "2017-08-18T13:41:26Z")

</div>

Not having a phase on your element is near impossible. The phase input is to select the phase the Spaces are created in. Just select a space in your model and look at the “Phase Created” parameter, that’s the phase you need to select.

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [August 18, 2017, 2:14pm UTC](https://forum.dynamobim.com/t/obtain-space-for-pipes/14103/9 "2017-08-18T14:14:55Z")

</div>

I know I am being greedy but what about the nulls?

get surrounding elements? or there is probably no space?

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [August 18, 2017, 2:51pm UTC](https://forum.dynamobim.com/t/obtain-space-for-pipes/14103/10 "2017-08-18T14:51:52Z")

</div>

@T_Pover I see in your definition you got some nulls as well…

Is that a node limitation or model issue? - space is not assigned etc?

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [August 18, 2017, 2:58pm UTC](https://forum.dynamobim.com/t/obtain-space-for-pipes/14103/11 "2017-08-18T14:58:30Z")

</div>

Its the low level/ high level.

I see now and find it even smarter! thx

---

<div class="post-metadata">

**Author:** ![ederbel](https://avatars.discourse-cdn.com/v4/letter/e/848f3c/32.png) [@ederbel](https://forum.dynamobim.com/u/ederbel)\
**Post date:** [March 22, 2024, 7:23am UTC](https://forum.dynamobim.com/t/obtain-space-for-pipes/14103/12 "2024-03-22T07:23:24Z")

</div>

Hello ! can you please share with us this script ?
