Space Number parameter / Element in Space

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?

Any help would be appreciated.

Thanks,

Chris

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

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.

1 Like

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.

The node I mentioned will help with that.

Thanks,

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

Chris

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

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. :wink:

Thanks,

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

I’m at a loss.

Chris

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?

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.

1 Like

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.

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

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.

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.

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.

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