LatticeMath

 

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

 

Module Type

Math

 

Syntax

object.Construct(“CreateModule”)

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

object.Do() or object.DoOnce()

 

object.Construct(“ModifyModule”)

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

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

object.Do() or object.DoOnce()

 

Option Name

LatticeMathAuto

LatticeMathXMin

LatticeMathXMax

LatticeMathYMin

LatticeMathYMax

LatticeMathZMin

LatticeMathZMax

LatticeMathXNum

LatticeMathYNum

LatticeMathZNum

LatticeMathOutType

LatticeMathOutComps

LatticeMathExprComp1

LatticeMathExprComp2

LatticeMathExprComp3

LatticeMathExprComp4

LatticeMathExprComp5

LatticeMathExprComp6

LatticeMathExprComp7

LatticeMathExprComp8

LatticeMathExprComp9

LatticeMathExprComp10

LatticeMathExprComp11

LatticeMathExprComp12

LatticeMathExprComp13

LatticeMathExprComp14

LatticeMathExprComp15

LatticeMathExprComp16

LatticeMathExprComp17

LatticeMathExprComp18

LatticeMathExprComp19

LatticeMathExprComp20

 

Example

This example shows how to create a Math 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 function lattice

  CommandApi.Construct ("CreateModule")

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

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

  CommandApi.Do()

 

 'Add a second component to the function lattice

  CommandApi.Construct ("ModifyModule")

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

  CommandApi.Option ("FunctionLatticeOutComps", "2")

  CommandApi.Do()

 

 'Set the component 2 equation

  CommandApi.Construct ("ModifyModule")

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

  CommandApi.Option ("FunctionLatticeExprComp1", "2*x+y+0.5*z")

  CommandApi.Do()

 

 'Add a math module to the function lattice

  CommandApi.Construct ("CreateModule")

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

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

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

  CommandApi.Do()

 

End Sub

 

Used by: CreateModule, ModifyModule

 

 

See Also

Automation Model

Automation Example - LatticeMath