The Axes module is created with the CreateModule command by setting the Type to Axes. The properties of the Axes are altered with the ModifyModule command. This is similar to the Network | Graphics Output | Axes command.
Module Type
Axes
Syntax
object.Construct(“CreateModule”)
object.Option(“SourceModule”, “data file name”)
object.Option(“Type”, “Axes”)
object.Do() or object.DoOnce()
object.Construct(“ModifyModule”)
object.Option(“Module”, “Axes”)
object.Option(“Option_Name”, “OptionValue”)
object.Do() or object.DoOnce()
Option Name
Example
This example shows how to open an existing Voxler file, add axes, and alter the X Axis color.
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
'Open an existing file
CommandApi.Construct ("Open")
CommandApi.Option ("Path", VoxlerApp.Path+"\Samples\Gold (ScatterPlot).voxb")
CommandApi.DoOnce()
'Add a clip plane
CommandApi.Construct ("CreateModule")
CommandApi.Option ("Type", "Axes")
CommandApi.Option ("AutoConnect", "True")
CommandApi.Option ("SourceModule", "ScatterPlot")
CommandApi.Do()
'Show X Axis
CommandApi.Construct ("ModifyModule")
CommandApi.Option ("Module", "Axes")
CommandApi.Option ("AxesXAxisShow", "True")
CommandApi.Do()
'Change the X Axis color
CommandApi.Construct ("ModifyModule")
CommandApi.Option ("Module", "Axes")
CommandApi.Option ("AxesXAxisColor", "light green")
CommandApi.Do()
End Sub
Used by: CommandApi object, CreateModule, ModifyModule
See Also