# Space Number parameter / Element in Space

**URL:** <https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485>\
**Category:** Revit\
**Tags:** mep\
**Created:** [October 9, 2017, 8:05pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485 "2017-10-09T20:05:40Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdefosset](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@cdefosset](https://forum.dynamobim.com/u/cdefosset)\
**Post date:** [October 9, 2017, 8:05pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/1 "2017-10-09T20:05:40Z")

</div>

I am trying to get the space number of a mechanical equipment in a space. I am able to get a list of equipment, an ID number etc. but the space number only returns a list of numbers. How can I get the corresponding space number to the equipment?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/0/202a9ef47ace4206f6c3d9f887f21a5ca73d8e3a.png)

Any help would be appreciated.

Thanks,

Chris

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 9, 2017, 8:30pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/2 "2017-10-09T20:30:13Z")

</div>

Here are some related threads:  
[https://forum.dynamobim.com/search?q=set%20space%20parameter](https://forum.dynamobim.com/search?q=set%20space%20parameter)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 9, 2017, 9:14pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/3 "2017-10-09T21:14:07Z")

</div>

You’re trying to read the space number from the mechanical equipment. You need to get that parameter value from the space element. I’d suggest using the `FamilyInstance.Space` node from Rhythm instead of `Elements in Space`.

---

<div class="post-metadata">

**Author:** ![cdefosset](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@cdefosset](https://forum.dynamobim.com/u/cdefosset)\
**Post date:** [October 9, 2017, 9:16pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/4 "2017-10-09T21:16:25Z")

</div>

Thanks, I will give that a try. The other issue that I run into is there are multiple pieces of equipment in a space so when I am trying to push the room name to the mark parameter they aren’t going into the correct space.

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 9, 2017, 9:18pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/5 "2017-10-09T21:18:23Z")

</div>

The node I mentioned will help with that.

---

<div class="post-metadata">

**Author:** ![cdefosset](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@cdefosset](https://forum.dynamobim.com/u/cdefosset)\
**Post date:** [October 9, 2017, 9:40pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/6 "2017-10-09T21:40:14Z")

</div>

Thanks,

I have set it up as you have shown but the output quantities don’t match. Shouldn’t they?

Chris

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/0/906438855ee482daed3ee7c6db2c89ab755c9288.png)

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 9, 2017, 9:43pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/7 "2017-10-09T21:43:27Z")

</div>

Sorry, I am off for today, see here maybe:

> [@Copy Space parameters to Family Parameters](https://forum.dynamobim.com/t/copy-space-parameters-to-family-parameters/6119):
>
> Hi guys, I was wondering if it’s possible to copy 3 space parameter values to families that are inside those spaces. Let me give you an example… I have 3 spaces in my Revit model. Those spaces have three parameters (instance): A B C Space 1: A = 2 B = 3 C = 1000 Space 2: A = 3 B = 200 C = 5 Space 3: A = 5 B = 20 C = 55 Each Space have a FCU except Space 3 . Space 1 =\> FCU 1 Space 2 =\> FCU 2 Space 3 =\> None Those Fcu’s have also parameters A B C. I would like to copy para…

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 9, 2017, 10:22pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/8 "2017-10-09T22:22:33Z")

</div>

The number of sublists will match but the total count may not if individual spaces have more than one element in them like you said. I promise the FamilyInstance.Space node will make things a whole lot easier. 😉

---

<div class="post-metadata">

**Author:** ![cdefosset](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@cdefosset](https://forum.dynamobim.com/u/cdefosset)\
**Post date:** [October 9, 2017, 10:25pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/9 "2017-10-09T22:25:29Z")

</div>

Thanks,

The number of sublists aren’t matching. One has thirteen and one has fourteen.

I’m at a loss.

Chris

---

<div class="post-metadata">

**Author:** ![cdefosset](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@cdefosset](https://forum.dynamobim.com/u/cdefosset)\
**Post date:** [October 9, 2017, 10:26pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/10 "2017-10-09T22:26:38Z")

</div>

If I use the FamilyInstance.Space node I can get the space number as you mentioned but then how do I get the equipment that is associated with that space?

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 9, 2017, 10:28pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/11 "2017-10-09T22:28:14Z")

</div>

You can get it directly from the element. The list structure stays the same with FamilyInstance.Space so you pull one parameter from the equipment then the other parameter from the space.

---

<div class="post-metadata">

**Author:** ![cdefosset](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@cdefosset](https://forum.dynamobim.com/u/cdefosset)\
**Post date:** [October 10, 2017, 12:16pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/12 "2017-10-10T12:16:55Z")

</div>

I have pulled the space information from the spaces and the equipment information from the equipment. The list are two different lengths. There is more than one piece of equipment in a space and some equipment isn’t assigned to spaces yet. This is where I am not quite sure what to do.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/a/6a9980e76b396204954ccf242fc2c42bdc8a610a.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 10, 2017, 1:05pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/13 "2017-10-10T13:05:14Z")

</div>

You’re most likely getting nulls from the elements not assigned a space. What do you want to do with these elements?

---

<div class="post-metadata">

**Author:** ![cdefosset](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@cdefosset](https://forum.dynamobim.com/u/cdefosset)\
**Post date:** [October 10, 2017, 1:10pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/14 "2017-10-10T13:10:53Z")

</div>

The overall goal is to take the space number and combine it with the mark and create a new parameter that combines the two and can then be tagged in the plans.

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 10, 2017, 1:27pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/15 "2017-10-10T13:27:25Z")

</div>

Yes, but for elements without a space, and therefore without a space number, how are you wanting to name them? Or do you not want to include them? You can’t have nulls in your list or it will break the list structure.

---

<div class="post-metadata">

**Author:** ![cdefosset](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@cdefosset](https://forum.dynamobim.com/u/cdefosset)\
**Post date:** [October 10, 2017, 1:36pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/16 "2017-10-10T13:36:16Z")

</div>

If they don’t have a space associated to them I would like to omit them from the list. So only equipment with a space would be included.

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 10, 2017, 3:58pm UTC](https://forum.dynamobim.com/t/space-number-parameter-element-in-space/15485/17 "2017-10-10T15:58:26Z")

</div>

You’ll have to filter the elements and the spaces with a boolean mask like you attempted earlier.
