Get the Floor Type Parameter Value to Room Floor Type

Hello everyone

I want to write the ‘Type Comments’ data of the floors in the rooms drawn in the Revit project to the ‘Floor Finish’ parameter in the rooms. However, in the code I wrote, while this data is processed for some rooms, it is not processed for others.

I would appreciate it if you could help me.

There’s no relationship between your floors and your rooms. You’re just getting all the rooms in your project (ordered by ElementId) and all the floors in your project (ordered by ElementId) and then mapping them one to one. You need to actually determine which floor is associated with each room then map the floor value to the rooms.

Hello @erdim_asilkan and welcome ;)…you could try something here and should work if you have multiple floors in rooms as well

1 Like

Thank you :wink:



First of all, thank you for your answer, when I try the script in a file with 10 rooms, it works smoothly. The first picture belongs to this.

But when I apply it in a project with 600 rooms, unfortunately it does not work, I wonder where I am doing wrong.
you can see in the second picture.

seems you had some list level issue try set to l3 in groupbyfunction…and be sure it group the right way so you have seperate list for floors