Construct Method

 

The Construct method tells Voxler which command to create. The Construct method is accessed from the CommandApi object.

 

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

 

Syntax

object.Construct(“Construct_type”)

 

Construct Types

CheckForUpdate

ClearHistory

ConnectModules

CreateModule

DeleteAllModules

DeleteModule

Export

Import

ModifyModule

MoveModule

New

NewNet

NewWks

Open

RenameModule

Save

ShowModule

ShowWindow

ViewDirection

ViewFitToWindow

ViewSize

 

Example

This example demonstrates how to open an existing file using the Construct method.

 

  CommandApi.Construct ("Open")

  CommandApi.Option ("Path", VoxlerApp.Path+"\Samples\Gold (ScatterPlot).voxb")

  CommandApi.DoOnce()

 

Used by: CommandApi object

 

 

See Also

Automation Model