Home/ Reference/ Shape Appearance

shape.Curve

The curve object, present only after converting to curves. Exposes .Nodes, .SubPaths, .Length, .Area.

Signature

shape.Curve

Notes

The curve object, present only after converting to curves. Exposes .Nodes, .SubPaths, .Length, .Area.

Python example (runnable)

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

# only converted shapes carry Curve data
try:
    nodes = shape.Curve.Nodes
    print("Nodes: ", nodes.Count)
    print("Curve length: ", shape.Curve.Length)
    print("Enclosed area: ", shape.Curve.Area)
except Exception:
    print("Not a curve; call ConvertToCurves() first")

About this section: Shape Appearance

Shape Appearance — outline, fill and transparency shortcuts.

Other entries in this section