Subset

 

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

 

Module Type

Subset

 

Syntax

object.Construct(“CreateModule”)

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

object.Do() or object.DoOnce()

 

object.Construct(“ModifyModule”)

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

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

object.Do() or object.DoOnce()

 

Option Name

SubsetAuto

SubsetXFirst

SubsetXLast

SubsetXStep

SubsetYFirst

SubsetYLast

SubsetYStep

SubsetZFirst

SubsetZLast

SubsetZStep

SubsetComp1

SubsetComp2

SubsetComp3

SubsetComp4

SubsetComp5

SubsetComp6

SubsetComp7

SubsetComp8

SubsetComp9

SubsetComp10

SubsetComp11

SubsetComp12

SubsetComp13

SubsetComp14

SubsetComp15

SubsetComp16

SubsetComp17

SubsetComp18

SubsetComp19

SubsetComp20

 

Example

This example shows how to create a Subset module attached to a lattice.

 

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 test lattice

  CommandApi.Construct ("CreateModule")

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

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

  CommandApi.Do()

 

 'Add a subset module to the test lattice

  CommandApi.Construct ("CreateModule")

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

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

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

  CommandApi.Do()

 

End Sub

 

Used by: CreateModule, ModifyModule

 

 

See Also

Automation Model