The Isosurface module is created with the CreateModule command by setting the Type to Isosurface. The properties of the Isosurface are altered with the ModifyModule command. This is similar to the Network | Graphics Output | Isosurface command.
Module Type
ScatterPlot
Syntax
object.Construct(“CreateModule”)
object.Option(“SourceModule”, “data file name”)
object.Option(“Type”, “ScatterPlot”)
object.Do() or object.DoOnce()
object.Construct(“ModifyModule”)
object.Option(“Module”, “ScatterPlot”)
object.Option(“Option_Name”, “OptionValue”)
object.Do() or object.DoOnce()
Option Name
IsosurfaceLabelFormatNumDigits
IsosurfaceLegendShowBackground
IsosurfaceLegendUseCustomLabels
Example
This example shows how to load a data file, grid the data, and create a isosurface from it. It then changes one property.
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()
'Load the data file
CommandApi.Construct("Import")
CommandApi.Option("AutoConnect", "False")
CommandApi.Option ("DefaultPosition", "True")
CommandApi.Option ("Path", "c:\program files\golden software\Voxler 4\Samples\GoldConcentration.dat")
CommandApi.Option ("Filter", "dat")
CommandApi.Do()
'Add a gridder module
CommandApi.Construct("CreateModule")
CommandApi.Option ("AutoConnect", "True")
CommandApi.Option ("SourceModule", "GoldConcentration.dat ")
CommandApi.Option ("Type", "Gridder")
CommandApi.Do()
'Grid the data
CommandApi.Construct("ModifyModule")
CommandApi.Option("Module","Gridder")
CommandApi.Option("Gridder3Auto", "true")
CommandApi.Option("Gridder3DoIt", "true")
CommandApi.Do()
'Add a isosurface module
CommandApi.Construct("CreateModule")
CommandApi.Option ("AutoConnect", "True")
CommandApi.Option ("SourceModule", "Gridder")
CommandApi.Option ("Type", "Isosurface")
CommandApi.Do()
'Change the isovalue
CommandApi.Construct ("ModifyModule")
CommandApi.Option ("Module", "Isosurface")
CommandApi.Option ("IsosurfaceIsovalue", "3.9")
CommandApi.Do()
End Sub
Used by: CommandApi object, CreateModule, ModifyModule
See Also