DoOnce Method

 

The DoOnce method tells Voxler to do the action listed in the Construct method. The DoOnce method is accessed from the CommandApi object. Use the DoOnce method when you do not want to be able to undo a command.

 

The DoOnce method must be used in combination with the Construct method and the Option method to create an object.

 

Syntax

object.DoOnce()

 

Example

This example demonstrates how to edit a Scatterplot module’s color map properties using the Do method. The Scatterplot color map change is not added to the Edit | Undo list.

 

'Change color of scatter plot symbols

  CommandApi.Construct ("ModifyModule")

  CommandApi.Option ("Module", "ScatterPlot")

  CommandApi.Option ("ScatterPlotColormap","Terrain")

  CommandApi.DoOnce()

 

Used by: CommandApi object

 

 

See Also

Automation Model