undo > undo end_block

www.kxcad.net Home > CAE Index > MSC Software Index > Adams MD R2 Index


Your Ad Here

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:
To create an undo block:
1.
UNDO BEGIN_BLOCK
2.
3.
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.
Your Ad Here