@harunaydin wrote:
Blockquote
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
Posts: 4
Participants: 3