Convert List of Lines, curves convert to polyline

Convert List of Lines and curves convert to polyline

PolyCurve.ByJoinedCurves will do exactly that as long as your list of curves can form a valid polycurve.