Home/ Reference/ Units & Conversion

shape.Curve.Area / shape.Curve.Length

True area and perimeter. Curve objects only.

Signature

shape.Curve.Area / shape.Curve.Length

Notes

True area and perimeter. Curve objects only.

Python example (runnable)

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

try:
    c = shape.Curve                     # only curve objects have this
    print("True area: ", round(c.Area, 4))
    print("Perimeter: ", round(c.Length, 4))
except Exception:
    print("Not a curve; call shape.ConvertToCurves() first")

About this section: Units & Conversion

Units & Conversion — document units and conversion.

Other entries in this section