How do I rename Levels by list, and level elevation?

Hi Dynamo Community, I hope you are doing well,

Could you please give me some kind advice.
How can I rename the levels sorted by key, with the List I made in the code block in the same order?

(I sorted the levels by height, and I created a list on code block in the same order as per height.)

How can I create the list from the code block to have only one output?

Thanks in advance.

Use the Element.SetParamterByName node!
The Elements are your sorted Levels, the Parame Name is the Parameter that holds the name of the Level (I am not quite sure how its called, I’m using the German version of Revit) and the values is a list (use the List Create node) of the names you have in the code block.

Good luck!