Rename elements (beams,columns etc.) by X and Y direction

thanks @Vikram_Subbaiah
its work like a charm,:+1:
one more thing, this script is works on all elements, not by level.
and
can you tell me what is wrong with my script?
because i am learner in Dynamo. so i need to understand… :slight_smile: