Open

 

The Construct method tells Voxler which command to create. The Construct method is accessed from the CommandApi object. The Open type allows the Voxler program to open existing VOXB file in the viewer window or data file in the worksheet window. This is similar to the File | Open command.

 

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(“Open”)

 

Construct Type

Open

 

Parameter

Type

Description

Path

string

Name of the module to be opened

 

Remarks

The Open type opens data files in the worksheet window. To import a data file into a Voxler project, use the Import construct type.

 

Example

This example opens the Helens (ContourMap) example file.

 

Sub Main

 'Declares VoxlerApp as an object

  Dim VoxlerApp As Object

 

 'Creates an instance of the Voxler application object

 'and assigns it to the variable named "VoxlerApp"

  Set VoxlerApp = CreateObject("Voxler.Application")

  Set VoxlerApp = GetObject(,"Voxler.Application")

 

 'Make Voxler visible

  VoxlerApp.Visible = True

 

 'Access CommandApi

  Set CommandApi = VoxlerApp.CommandApi

 

'Open an existing file

  CommandApi.Construct ("Open")

  CommandApi.Option ("Path", VoxlerApp.Path+"\Samples\Helens (ContourMap).voxb")

  CommandApi.DoOnce()

 

End Sub

 

Used by: CommandApi object

 

 

See Also

Automation Model

Construct Method