ShowModule

 

The Construct method tells Voxler which command to create. The Construct method is accessed from the CommandApi object. The ShowModule type turns off/on the display of the module.

 

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

 

Construct Type

ShowModule

 

Parameter

Type

Description

Module

String

Name of the module to be turned on/off

ModuleID

Unsigned

Numeric ID of the module to be turned on/off

Show

Boolean

True turns the display of the module on. False turns the module off.

 

Example

This example opens the Helens (ContourMap) example file. It then turns the display of the data module off.

 

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

 

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

 

'Turn off the display of the data module and all downstream modules

  CommandApi.Construct("ShowModule")

  CommandApi.Option ("Module", "StHelens2.vdat")

  CommandApi.Option ("Show", "False")

  CommandApi.Do()

 

End Sub

 

Used by: CommandApi object

 

 

See Also

Automation Model

Construct Method