The Redo method re-executes the last undone command. The Undo and Redo methods are used in combination with the Do method of executing a command. This is similar to the Edit | Redo command.
Syntax
object.Redo()
Example
This example demonstrates how to add an Isosurface module to a Gridder module. It then undoes the creation and redoes the creation.
'Add an isosurface
CommandApi.Construct("CreateModule")
CommandApi.Option("AutoConnect", "true")
commandApi.Option("SourceModule","Gridder")
CommandApi.Option("Type","Isosurface")
CommandApi.Do()
'Wait 4 seconds so you can see the isosurface creation
Wait(4)
'Undoes the create isosurface module
CommandApi.Undo()
'Wait 4 seconds so you can see the removal of the isosurface
Wait(4)
'Redo the create isosurface module command
CommandApi.Redo()
Used by: CommandApi object
See Also