RIR How to apply type to the pyhton output

I am struggling with very simple python script. I cannot output “Room” using python in rhino inside revit.

Thanks!

In python you need to specify the phase of the family instance you want to retrieve the room for as below

If that’s your sole purpose to get the To and From Room you can use the RiR native component shown below

2 Likes