Home/ Reference/ Geometry & Transform

shape.Clone()

Clones in place — the copy sits exactly on top of the original.

Signature

shape.Clone()

Notes

Clones in place — the copy sits exactly on top of the original.

Python example (runnable)

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

copy = shape.Clone()                     # clone in place, exactly on top
copy.Name = "copy"

copy.Move(20 / 25.4, 0)                  # nudge it so you can see both
print("Cloned and moved 20mm right")

About this section: Geometry & Transform

Geometry & Transform — position, size and rotation of shapes.

Other entries in this section