undo end_block
Allows you to group commands, as you issue them from the command window, into undo blocks. By grouping them into undo blocks, you can use a single Undo command to reverse all the operations in the block. You can define undo blocks around macros, command files, or any group of commands. You can nest them to any level.
Format:
UNDO END_BLOCK
Example:
MODEL CREATE...
UNDO BEGIN_BLOCK&
PART CREATE...&
MARKER CREATE...&
UNDO BACKWARD ! Undo the MARKER CREATE above, not entire undo block&
MARKER CREATE...&
GEOM CREATE...&
UNDO END_BLOCK&
PART DELETE...&
UNDO BACKWARD ! Undo the PART DELETE command&
UNDO BACKWARD ! Undo the entire undo block&
UNDO FORWARD ! Restore the entire undo block&
UNDO BACKWARD ! Undo the entire undo block again&
UNDO BACKWARD ! Undo the MODEL CREATE command
Note the following about the example:
■The first UNDO BACKWARD within the undo block undoes only the preceding MARKER CREATE command.
■The third UNDO BACKWARD command after the Undo block undoes all the contents of the undo block.
■The UNDO FORWARD reverses the undo of the entire undo block as if it were a single command.
To create an undo block:
1. Enter the following command in the command window to mark the beginning of the block:
UNDO BEGIN_BLOCK
2. Issue all the commands to be included in the undo block.
3. To close the block, enter the command:
UNDO END_BLOCK
Once you have closed the undo block, any individual commands that you issue outside the undo block, or any nested undo blocks within the undo block, are not affected by an Undo command. Once you close the undo block, you cannot open it again.
Tips:
1. The limit on the number of commands your template-based product remembers does not apply to commands within an undo block. You may notice slowed system performance if you store too many commands in a single undo block.