import rhinoscriptsyntax as rs
ml=[]
sd=1500
cor=x
while sd>10:
for i in range(1,999,1):
param1=i/1000
fl=rs.TrimCurve(cor,(0,param1),False)
sl=rs.TrimCurve(cor,(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)
cor=sl
break
ml.append(sll)
a=ml
Blockquote
ERROR
Runtime error (TypeErrorException): Parameter must be a Guid or string representing a Guid
Traceback:
line 890, in coerceguid, “C:\Users\Emreistikam\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\Emreistikam\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\Emreistikam\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\curve.py”
line 22, in script
Use three backticks ( ``` ) before and after your code to paste in with indents.
My result from a 52mm long open curve was getting a 0.03mm length curve, it seemed to work. Can anyone explain why a print statement print f1 on line 21 doesn’t work? Does this imply a failure and None being returned?
Most likey one of the functions that generate the data needed for the function on line 22 failed. In this case probably f1 is None because your TrimCurve function on line 21 failed.
Hi every one, is there any solution for above highlighted issue??? it was all ok with me. but when i updated the rhino. then the problem mentioned above start.
kindly suggest the solution