The OrthoImage module is created with the CreateModule command by setting the Type to OrthoImage. The properties of the OrthoImage module are altered with the ModifyModule command. This is similar to the Network | Graphics Output | OrthoImage command.
Module Type
OrthoImage
Syntax
object.Construct(“CreateModule”)
object.Option(“Type”, “OrthoImage”)
object.Do() or object.DoOnce()
object.Construct(“ModifyModule”)
object.Option(“Module”, “OrthoImage”)
object.Option(“Option_Name”, “OptionValue”)
object.Do() or object.DoOnce()
Option Name
OrthoSliceLabelFormatNumDigits
OrthoSliceLegendUseCustomLabels
OrthoSliceLegendShowBackground
Example
This example shows how to import a file and create an orthoimage from it.
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()
'Import a file
CommandApi.Construct ("Import")
CommandApi.Option ("Path", "c:\Program Files\Golden Software\Voxler 4\Samples\Jaw.vdat")
CommandApi.Option ("Filter", "vdat")
CommandApi.Do()
'Create a OrthoImage and attach it to the data
CommandApi.Construct ("CreateModule")
CommandApi.Option ("Type", "OrthoImage")
CommandApi.Option ("AutoConnect", "True")
CommandApi.Option ("SourceModule", "Jaw.vdat")
CommandApi.Do()
End Sub
Used by: CommandApi object, CreateModule, ModifyModule
See Also