shape.PowerClipParent / shape.Layer / shape.Page
Walks back up: which frame clips this object, which layer, which page. Before cleaning up a messy file, map the hierarchy first.
Signature
shape.PowerClipParent / shape.Layer / shape.Page
Notes
Walks back up: which frame clips this object, which layer, which page. Before cleaning up a messy file, map the hierarchy first.
Python example (runnable)
Requires
pywin32. The example assumes app / doc / page / layer are already connected.
See Connection & InitPython
shape = app.ActiveSelectionRange(1)
print("On page: ", shape.Page.Name)
print("On layer: ", shape.Layer.Name)
print("Parent group: ", shape.ParentGroup)
try:
pc = shape.PowerClipParent # only has a value inside a container
print("Clipped inside: ", pc.Name)
except Exception:
print("No frame parent, so it is not inside a PowerClip")
About this section: Object Data
Object Data — object data and document properties.
- This section has 6 entries; this is one of them.
- See the full section index: Object Data
Other entries in this section
- shape.NameThe object name shown in the Object Manager. Read/write — name things
- shape.StaticIDA unique ID within the file, read-only, and stable across reopening. T
- shape.URLA hyperlink attached to the object, carried out on PDF export. Interac
- doc.PropertiesFile properties (title, author, keywords, notes). Fill them in consist
- doc.MetadataThe metadata collection, finer-grained than Properties and it takes cu