Key macro U implements the command undo.
undo [print [count]]
where count indicates a number of events to be undone (default 1 event), and must be a nonzero positive integer.
The undo command reverses the effect of the last executed command (command-line, script, or macro-invoked), returning the layout to the state it was in prior to execution of that command.
Certain commands in magic disable the undo mechanism, thus preventing the command from being undone. These include layout reads and writes, CIF, GDS, and LEF/DEF reads and writes. The print option generates a stack trace of the top count events in the undo stack, in excruciating detail.
undo is implemented as a built-in window command in magic.
|Return to command index|
Last updated: October 15, 2004 at 5:55am