The PointSrc module is created with the Import command. The properties of the PointSrc 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”, “points_src_name”)
object.Option(“Option_Name”, “OptionValue”)
object.Do() or object.DoOnce()
Option Name
Example
This example shows how to load a point 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 a point source file
CommandApi.Construct ("Import")
CommandApi.Option ("GuiEnabled", "False")
CommandApi.Option ("AutoConnect", "False")
CommandApi.Option ("ClearOptions", "False")
CommandApi.Option ("Filter", "dat")
CommandApi.Option ("Path", "C:\Program Files\Golden Software\Voxler 4\Samples\DrillData.dat")
CommandApi.Option ("Options", "Defaults=1;EatWhitespace=1;Delimiter=Space,tab,comma,semicolon;TextQualifier=doublequote,quote")
CommandApi.Do()
End Sub
Used by: Import, ModifyModule
See Also