How to rename revit line styles

Good evening, I would like to know what my code is missing to rename line styles.
I attach the image so you can help me.

Thank you

Translated by moderators.
Original text below.

Buenas noches quisiera saber que le falta a mi código para renombrar estilos de líneas.
Adjunto la imagen para que me puedan ayudar.



@desm30, please keep future posts to English, as that is the official forum language. You can post your original text as well after a line as I have done in the edit above. This is a requirement for search to work correctly.

Thanks. :slight_smile:

You can try to use Element.SetName in clockwork package. or can simply create a python script with this line:

lines = IN[0]
newNames = IN[1]

for line in lines: 
        line.Name = newName
    except Exception,e:
        x = e

if x:    
    OUT =  x
    OUT = lines

**Havent tested out the code so use it at your own risk :slight_smile: