I’m on the latest Rhino 7 Service Release (7.37.24004.15001, 2024-01-04). What is the error you’re getting?
Based on your bottom screenshot, it looks like you need to set the Polyline
input parameter type hint to Polyline
. Here’s how with the Rhino 7 GHPython component:
I believe it’s roughly the same with the new Rhino 8 script editor, but you might also have to run it in IronPython mode. That said, you can also just keep using GHPython, if you come across issues with the new editor (there is quite a bit of early day jank/issues).
Edit: Just had a look in Rhino 8 and it appears this is another case where CPython-RhinoCommon interop appears borked (i.e. a Polyline
type is passed as list
):
240208_RemoveSmallPolylineSegments_Rhino8_00.gh (14.2 KB)
Edit 2: I’m guessing this casting bug has to with this (Ping @eirannejad)