Creating Floor from Area Plan

Hello, I would love to get some input on how to create Floors based on Area Plan I created in Revit. and I want to name these floors to match the name of the Area Plan. I started on a script but I running into an error and not sure what to do next? Please see below

Thank you for the help

Hello @AAbuYosof …try something here, could probably work for you…


Thank you @sovitek for the help