Home/ Reference/ Document

doc.Undo() / doc.Redo()

Undo or redo one step.

Signature

doc.Undo() / doc.Redo()

Notes

Undo or redo one step.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
doc.Undo()      # undo the last operation
print("Undone")

doc.Redo()      # redo what you just undid
print("Redone")

About this section: Document

Document — documents and file handling.

Other entries in this section