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]
import clr
clr.AddReference('ProtoGeometry')
import Autodesk.DesignScript.Geometry
a = IN[0]
if isinstance(a, list):
a = a
else: a = [a]
e = []
for i in a:
e.append(Autodesk.DesignScript.Geometry.Curve.Offset(i,0))
OUT = e