how to create a curve from line by python.
import clr clr.AddReference('ProtoGeometry') import Autodesk.DesignScript.Geometry OUT = Autodesk.DesignScript.Geometry.Curve.Offset(IN,0)
Thank you very much.
I want use multipul line for curve. single line to curve work is fine, but multiple line is not working.
import clr clr.AddReference('ProtoGeometry') import Autodesk.DesignScript.Geometry a = IN 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
Thank you so much
Hello I tried this python script as I want to convert a list of lines and sublists into a curve list, but this works only with flatten list of lines. I think it is easy solution if you have an answer would be great. Thanks.
Although I tried to offset curve with no offset, as the python code, it sounds silly solution, but is this an appropriate way to get the list of lines transformed into curves list?
is possible to get lines from curves? opposite operation
Curve.PointAtParameter(c,0) = StartPoint
Curve.PointAtParameter(c,1) = EndPoint
line = Line.ByStartAndEndPoint(StartPoint,EndPoint)