Copy-Paste from the examples :
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select curve", rs.filter.curve)
if not rs.IsCurveClosed(obj) and rs.IsCurveClosable(obj):
my_crv = rs.CloseCurve( obj )
rs.AddCurve(my_crv)
4 posts - 3 participants