ChangeType

 

The ChangeType module is created with the CreateModule command by setting the Type to ChangeType. The properties of the ChangeType module  are altered with the ModifyModule command. This is similar to the Network | Computational | ChangeType command.

 

Module Type

ChangeType

 

Syntax

object.Construct(“CreateModule”)

object.Option(“SourceModule”, “data file name”)

object.Option(“Type”, “ChangeType”)

object.Do() or object.DoOnce()

 

object.Construct(“ModifyModule”)

object.Option(“Module”, “ChangeType”)

object.Option(“Option_Name”, “OptionValue”)

object.Do() or object.DoOnce()

 

Option Name

ChangeTypeOutputType

ChangeTypeOffset

ChangeTypeScale

ChangeTypeStretch

 

Example

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

 

 'Create a function lattice

  CommandApi.Construct ("CreateModule")

  CommandApi.Option("Type", "FunctionLattice")

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

  CommandApi.Do()

 

 'Add a change type module to the function lattice

  CommandApi.Construct ("CreateModule")

  CommandApi.Option ("Type", "ChangeType")

  CommandApi.Option ("AutoConnect", "True")

  CommandApi.Option ("SourceModule", "FunctionLattice")

  CommandApi.Do()

 

End Sub

 

Used by: CreateModule, ModifyModule

 

 

See Also

Automation Model

Automation Example - ChangeType