Hi @Willem, you could use a clr.StrongBox
to create the empy array like shown below:
import Rhino
import scriptcontext
import rhinoscriptsyntax as rs
import System, clr
def DoSomething():
crv_id = rs.GetObject("Select curve to divide", 4, True, False)
if not crv_id: return
curve = rs.coercecurve(crv_id, -1, True)
points = clr.StrongBox[System.Array[Rhino.Geometry.Point3d]]()
length = 1.0
params = curve.DivideByLength(length, True, points)
if params: rs.AddPoints(points.Value)
DoSomething()
_
c.