Dear all,
i am trying to re-write a script from ironpython for python3:
obj = rs.GetObject()
if rs.IsPolyline(obj):
points = rs.PolylineVertices(obj)
if points:
for k, point in enumerate(points, start=0):
x = str(point[0])
y = str(point[1])
z = str(point[2])
When i run the script i get this error:

In ironpython this script will just work fine. Looks to me that something is going wrong with the Curve.TryGetPolyline method (rhino3d.com) or the rhinoscriptsyntax, or do i miss something?
Does anyone have an idea how i can work around this?
Best Peter
10 posts - 5 participants