Hello there,

I am trying to shatter curves by points in gpyhton script, however, the result shows

" Parameter must be a Guid or string representing a Guid."

I go through the lines find out the problem is at rs.SplitCurve. I did find some people on the forum have the similar issue with the Guid problem, but still i cannot resolve my error. Hope someone is able to provide a clue! Thanks in advanced!

the attachment is the GH file and following is the Gpython code.

`Preformatted text`

import rhinoscriptsyntax as rs

mesh = mesh

curves = curves

pts = []

for i in range(len(curves)):

cmx = rs.CurveMeshIntersection(curves[i],mesh,False)

for j in range(len(cmx)):

pt = rs.AddPoint(cmx[j])

pts.append(pt)

newcurves = []

for i in range(len(curves)):

for j in range(len(pts)):

if rs.IsPointOnCurve(curves[i],pts[j]) == True:

param = rs.CurveClosestPoint(curves[i],pts[j])

splitedCrv = rs.SplitCurve(curves[i],param)

newcurves.append(splitedCrv)

indent preformatted text by 4 spaces

a = newcurves

Guidproblem.gh (4.4 KB)