Home/ Reference/ PowerClip

shape.PowerClip.Extract?

Pulls the contents out, the API equivalent of Extract Contents. Behaviour varies a lot between versions — probe it before you rely on it.

Signature

shape.PowerClip.Extract?

Notes

Pulls the contents out, the API equivalent of Extract Contents. Behaviour varies a lot between versions — probe it before you rely on it.

Python example (runnable)

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

# extract the contents, same as the right-click command
try:
    shape.PowerClip.Extract()
    print("Content extracted")
except Exception as e:
    print("No Extract in this version; do it from the CorelDRAW UI: ", e)

About this section: PowerClip

PowerClip — clipping content into a frame.

Other entries in this section