Home/ Reference/ Effects

shape.CreateContour(Offset)

Contour: rings the shape outward or inward. Neon lettering, sticker edges, map boundaries. Offset is in document units.

Signature

shape.CreateContour(Offset)

Notes

Contour: rings the shape outward or inward. Neon lettering, sticker edges, map boundaries. Offset is in document units.

Python example (runnable)

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

try:
    eff = shape.CreateContour(0.1)                  # 0.1 = offset, in document units
    print("Contour created, type: ", eff.Type)
except Exception as e:
    print("Contour failed: ", e)

About this section: Effects

Effects — drop shadow, blend, contour, extrude and lens.

Other entries in this section