Hey,
I’ve been trying to make a small script that converts any closed curve to a polyline, exactly as in the ‘curve to polyline’ component or alternatively as in the ‘rebuild curve’ component (I would like to add this functionality to another script later).
When I use the rs.ConvertCurveCoPolyline() method however, the input parameters which say [opt] doesn’t seem to be optional. As you can see in the picture, the point count for the curve doesn’t change when I move the ‘tolerance slider’ from .5 to 10 which it clearly should have done. If I use the min/max Edge length it works better, but that’s not really what I would like to do here. What am I doing wrong here?
If I use rs.rebuildcurve instead, I get the error message: ‘Runtime error (ArgumentTypeException): expected Guid, got NurbsCurve,’ - how can I get the guid of a referenced curve parameter?
Thanks
/M