PDA

View Full Version : OffsetCurve Bug?



vittorio
10-10-2010, 10:26 AM
Hi Steve
If i try a help example:


import rhinoscriptsyntax as rs

obj = rs.GetObject("Select a curve", rs.filter.curve)

if( rs.IsCurve(obj) ):

rs.OffsetCurve( obj, [0,0,0], 1.0 )


I get the error:
Message: Cannot convert numeric value 1 to CurveOffsetCornerStyle. The value must be zero.

Traceback (most recent call last):
line 9, in <module>, "<string>"
line 2441, in OffsetCurve, "C:\Users\utente\AppData\Roaming\McNeel\Rhinoceros\ 5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\curve.py"
line 7, in <module>, "C:\Users\utente\AppData\Local\Temp\TempScript.py"

Steve Baer
10-10-2010, 04:21 PM
Yep, its a bug. You can get the fix at
http://code.google.com/p/rhinopython/source/browse/trunk/scripts/rhinoscript/curve.py
This will also be fixed in the next WIP.
Thanks,
-Steve