Home/ Reference/ Curve & Node

shape.Curve.SubPaths

The sub-path collection. A shape with several separate runs of line has several sub-paths. Knockout lettering and logos with holes are all multi-subpath.

Signature

shape.Curve.SubPaths

Notes

The sub-path collection. A shape with several separate runs of line has several sub-paths. Knockout lettering and logos with holes are all multi-subpath.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveSelectionRange(1)
shape.ConvertToCurves()

c = shape.Curve
print("Subpaths: ", c.SubPaths.Count)

for i in range(1, c.SubPaths.Count + 1):
    sp = c.SubPaths.Item(i)
    print("#", i, " subpaths, nodes: ", sp.Nodes.Count)

About this section: Curve & Node

Curve & Node — subpaths and nodes.

Other entries in this section