Create Floor from room boundaries

Hello;

I am trying to create floors from rooms boundaries from dynamo to revit but i have always the same problem:
They create floor under the column and shear wall that are placed inside the room and not for the total room

How can i solve the problem ?
Thank you


image

Take a look into this: