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?
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.
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 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.
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.
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.
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.