import clr clr.AddReference('ProtoGeometry') from Autodesk.DesignScript.Geometry import * def CRV_to_LIN (crv): line = Line.ByStartPointEndPoint(crv.StartPoint, crv.EndPoint) return line Curves = IN[0] OUT = [CRV_to_LIN(i) for i in Curves]