Swapping "Line Style" of Model Lines

Hello Everyone,

I hope you can share some pointers. So I am getting stuck on this error.
I am creating Revit Model lines using “ModelCurve.ByCurve” method. But then I want to swap all the model lines that I created with a new Line Style named [TestLineStyle].

I have the attached the dynamo capture here.

Thanks for your help.

Have a look at this Select line style - #6 by Konrad_K_Sobon

thanks @bvs1982 for your help -