Error changing line style

Very good days.
I have the following problem.
It happens that I have created some detail lines and on the other hand I have created the line style that I want to use for the representation to be correct…
What happens is that the script worked very well for me in Revit 2020, 2021 but in version 2023 I get an error.
Could someone tell me how I can correct this error?


Hello @AM3D.BIM.STUDIO think you will need get the graphicstyle…

1 Like

Firstly I would like to thank you for your time and support in my problem.
The mind is very fragile to remember creations that I made a long time ago, but now I realize that someone was modifying the code that I left a long time ago…
Thank you so much…

1 Like