Home/ Reference/ Geometry & Transform

shape.Move(dx, dy)

Relative offset. Cheaper than SetPosition because it doesn't read the current position first.

Signature

shape.Move(dx, dy)

Notes

Relative offset. Cheaper than SetPosition because it doesn't read the current position first.

Python example (runnable)

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

shape.Move(10 / 25.4, 5 / 25.4)            # relative move: 10mm right, 5mm up

print("Before move: ", x0, y0)
print("After move: ", shape.PositionX, shape.PositionY)

About this section: Geometry & Transform

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

Other entries in this section