Home/ Reference/ Find & Traverse

coll.FindShapes("", 3, True)

Every curve.

Signature

coll.FindShapes("", 3, True)

Notes

Every curve.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
page = doc.ActivePage

curves = page.FindShapes("", 3, True)          # 3 = curve
print("Curves: ", curves.Count)

for i in range(1, curves.Count + 1):
    c = curves.Item(i)
    try:
        print(i, "Nodes: ", c.Curve.Nodes.Count)
    except Exception:
        print(i, "No curve data to read")

About this section: Find & Traverse

Find & Traverse — walking the shape tree.

Other entries in this section