DeleteAllModules

 

The Construct method tells Voxler which command to create. The Construct method is accessed from the CommandApi object. The DeleteAllModules type allows the Voxler program to delete all existing modules from the Network Manager. This is similar to the Edit | Delete All Modules 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(“DeleteAllModules”)

 

Construct Type

DeleteAllModules

 

Example

This example opens the Helens (ContourMap) example file. It deletes all modules from the Network Manager.

 

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

 

 'Create a new Voxler document

  CommandApi.Construct ("New")

  CommandApi.DoOnce()

 

 'Open an existing file

  CommandApi.Construct ("Open")

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

  CommandApi.DoOnce()

 

'Delete all modules in the Network Manager

  CommandApi.Construct ("DeleteAllModules")

  CommandApi.Do()

 

End Sub

 

Used by: CommandApi object

 

 

See Also

Automation Model

Construct Method