The GeomSrc module is created with the Import command. The properties of the GeomSrc 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”, “geom_src_name”)
object.Option(“Option_Name”, “OptionValue”)
object.Do() or object.DoOnce()
Option Name
Example
This example shows how to load a geometry 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 IV file
CommandApi.Construct ("Import")
CommandApi.Option ("GuiEnabled", "False")
CommandApi.Option ("AutoConnect", "False")
CommandApi.Option ("ClearOptions", "False")
CommandApi.Option ("Filter", "iv")
CommandApi.Option ("Path", "C:\Program Files\Golden Software\Voxler 4\Samples\Earth.iv")
CommandApi.Do()
End Sub
Used by: Import, ModifyModule
See Also