Where is the _SubCrv

Hello,

I have tried to make the simplest of scripts that would make a subcurve as long as another curve. Main issue is that I can´t find any SubCrv method. Tried working around it with rs.Command to basically macro the thing but this is somewhat cumbersome to work with further.

So what actually is the _SubCrv and how else than with the rs.Command can it be used in a python script?

I guess

curve.trim

would be the way to go in python script.

It’s basically like substring, you only take part of the curve, usually defined by two parameters t0 and t1, which represent start and end of the subcurve.

Have you tried rs.AddSubCrv?
https://developer.rhino3d.com/api/RhinoScriptSyntax/#curve-AddSubCrv

That is actually looking exactly like the SubCrv. Thank you :wink:

1 Like