Parameter must be a Guid or string representing a Guid

Hi everyone,

I have a trouble with ghpython
I mention that before but no one couldn’t help me.

My trouble is the same code doesn’t work with similar object.

I’ll share my code and my documents .

If anyone can help me I’ll be a really appreciate.

Thanks in advance,


Here is my code:

Blockquote

import rhinoscriptsyntax as rs
ml=[ ]
sd=1500
print(x)

for i in range(1,999,1):
    param1=i/1000
    fl=rs.TrimCurve(x,(0,param1),False)
    sl=rs.TrimCurve(x,(param1,1),False)
    flfp=rs.CurveStartPoint(fl)
    flsp=rs.CurveEndPoint(fl)
    fll=rs.AddLine(flfp,flsp)
    fcm=rs.CurveMidPoint(fl)
    flm=rs.CurveMidPoint(fll)
    fd=rs.Distance(fcm,flm)
    slfp=rs.CurveStartPoint(sl)
    slsp=rs.CurveEndPoint(sl)
    sll=rs.AddLine(slfp,slsp)
    scm=rs.CurveMidPoint(sl)
    slm=rs.CurveMidPoint(sll)
    sd=rs.Distance(scm,slm)
    if fd>10:
        ml.append(fll)
        break
a=sl

**********     ERROR     **********

Runtime error (TypeErrorException): Parameter must be a Guid or string representing a Guid

Traceback:
  line 890, in coerceguid, "C:\Users\HarunAydin\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\utility.py"
  line 995, in coercecurve, "C:\Users\HarunAydin\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\utility.py"
  line 2153, in CurveStartPoint, "C:\Users\HarunAydin\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\curve.py"
  line 20, in script

Blockquote

frm.3dm (324.9 KB) frm.gh (12.5 KB)

Please, don’t double post:

Next time you can just reply/edit your original topic and upload your files there.