undo flush
Allows you to dispose of all of the stored operations in the undo stack. It is not possible to execute an undo backward following the execution of undo flush.
Format:
Undo flush
Example:
MODEL CREATE...
UNDO BEGIN_BLOCK&
PART CREATE...&
MARKER CREATE...&
UNDO BACKWARD ! Undo the MARKER CREATE above, not entire undo block&
UNDO END_BLOCK&
UNDO FLUSH
Once this command is executed, all the stored operations in the Undo stack get disposed and it is not possible to do an Undo backward operation then.
Extended Definition:
1. While there are many applications for "undo flush" it can be particularly useful when a script takes actions that amass a large memory footprint. An example is a script that creates a number of analysis objects by reading in .res files, does something with them, then deletes the analysis objects. Without employing "undo flush", the analyses remain in memory because undo would have to re-create them. But, using "undo flush" would remove them permanently and free up memory.