Fetching Floor Levels for Elements

Hi guys,

I am new to Dynamo and having some difficulty in attached script. I was trying to extract floor levels for structural framing from a Revit model into an Excel sheet. But I am getting this error.
“Warning: Level.Name expects argument type(s) (Revit.Elements.Level), but was called with (string).”

Need help on this part.

Check the object type off of the GetParameter node, it may already be a string (in which case you should be able to skip the Level.Name step)

Hi Robert, I found the error. Thanks for help.