Problem about using Element.SetName from Orchid

I construct a model curve by curve in dynamo and trying to use the Element.SetName to reset the family name of the model curve but error appears. Any idea of solving the question. Thank you.

Hello, I’m not very sure about the question.
Curves (both model or annotation) in Revit don’t have the type, their name can refer to a certain LineStyle.
Are you looking for a way to change the name of the LineStyle?