Hello,
I need to select subcurve within a curve with python
the curve from which I need to select a subcurve is consisted of several segments, so it has subcurves
from help files I created a script:
object = rs.GetObject("Pick a curve",filter=4,subobjects=True)
print object.GeometryComponentIndex.Index
it works ok for solid, it returns different index for edges, but for closed curve it always returns -1
further I use the following to get and create subcurve, but it works only with solid edges
curve = object.Curve()
sc.doc.Objects.AddCurve(curve)
Thanks in advance
Aleksandar
1 post - 1 participant