undo begin_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 begin_block
suppress = yes/no
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
Description:
Parameter | Value Type | Description |
|---|
suppress | yes/no | Specifying 'yes' turns off screen updates during the execution of commands inside the undo block. The default is 'no'. |
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 that are not in the undo block, or any nested undo blocks within the undo block are not affected by an Undo command. Once closed, the undo block cannot be opened 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.
Caution: | It is not recommended to execute the following commands in a suppressed undo block. Doing this may have unintended effects, such as failing to update UDE instances properly. plugin load… file geometry read… optimize design_of_experiments… optimize simple_optimization… simulation single_run eigensolution… simulation single_run statematrix… simulation single_run assemble… simulation single_run equilibrium… simulation single_run transient… simulation single_run scripted… simulation single_run rerun… simulation single_run subroutine… simulation multi_run doe… simulation multi_run preview_doe… simulation multi_run optimization… simulation multi_run design_study… simulation multi_run read_results… |