Undo Method

 

The Undo 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 | Undo command.

 

Syntax

object.Undo()

 

Example

This example demonstrates how to add an Isosurface module to a Gridder module. It then undoes the creation of the isosurface.

 

'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)

 

 'Undo the create isosurface module

  CommandApi.Undo()

 

Used by: CommandApi object

 

 

See Also

Automation Model