Using the room where an item belongs to fill a instance parameter

Hello there,

I need to perform the following task: let’s take as an example, the category lighting fixtures. If I do a schedule of the lighting fixtures present in my project, i can add a column that specifies the room where that lighting fixture (instance) belongs.
Now, i’ve created an instance parameter (called ref01) that I need to be populated with the room number where that lighting fixture belongs.

Can somebody help me out here? Need to do it with the doors as well (where i should get the ‘to room’).

I think i can perform this with Element.Room from Rhythm, but i don’t know how can i move on from there.

Regards and thank you all,

Use Element.Room to get the room associated with that element. Get the Room Number from your new list of rooms. Then write that value back to the original light fixture element’s parameter.

FamilyInstance.Room in newer versions of Rhythm. :wink:

element.room implied it worked with more than just family instances…

1 Like

Thank you! I could get the element id (the room element id) but now i want to get the room number out of that id, what command should i use?

Sorry for all the questions, I’m kind of new with Dynamo.

Regards