The LatticeSrc module is created with the Import command. The properties of the LatticeSrc are altered with the ModifyModule command. This is similar to the File | Import command.
Syntax
object.Construct(“Import”)
object.Option(“Filter”, “Filter_Type”)
object.Option(“Path”, “Full_Path”)
object.Do() or object.DoOnce()
object.Construct(“ModifyModule”)
object.Option(“Module”, “lattice_src_name”)
object.Option(“Option_Name”, “OptionValue”)
object.Do() or object.DoOnce()
Option Name
Example
This example shows how to load a lattice source file.
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()
'Loads an HDF file
CommandApi.Construct ("Import")
CommandApi.Option ("GuiEnabled", "False")
CommandApi.Option ("AutoConnect", "False")
CommandApi.Option ("ClearOptions", "False")
CommandApi.Option ("Filter", "hdf")
CommandApi.Option ("Path", "C:\Program Files\Golden Software\Voxler 4\Samples\Temperature.hdf")
CommandApi.Do()
End Sub
Used by: Import, ModifyModule
See Also