The WellRender module is created with the CreateModule command by setting the Type to WellRender. The properties of the WellRender are altered with the ModifyModule command. This is similar to the Network | Graphics Output | WellRender command.
Module Type
WellRender
Syntax
object.Construct(“CreateModule”)
object.Option(“SourceModule”, “data file name”)
object.Option(“Type”, “WellRender”)
object.Do() or object.DoOnce()
object.Construct(“ModifyModule”)
object.Option(“Module”, “WellRender”)
object.Option(“Option_Name”, “OptionValue”)
object.Do() or object.DoOnce()
Option Name
WellRenderDirDataLabelFormatNumDigits
WellRenderDirDataLabelFormatPostfix
WellRenderDirDataLabelFormatPrefix
WellRenderDirDataLabelFormatType
WellRenderDirDataLegendAntialias
WellRenderDirDataLegendBGColor
WellRenderDirDataLegendCustomLabels
WellRenderDirDataLegendFGColor
WellRenderDirDataLegendLabelHeight
WellRenderDirDataLegendNumLabels
WellRenderDirDataLegendOrientation
WellRenderDirDataLegendShowBackground
WellRenderDirDataLegendTitleHeight
WellRenderDirDataLegendUseCustomLabels
WellRenderIntDataLabelFormatNumDigits
WellRenderIntDataLabelFormatPostfix
WellRenderIntDataLabelFormatPrefix
WellRenderIntDataLabelFormatType
WellRenderIntDataLegendAntialias
WellRenderIntDataLegendBGColor
WellRenderIntDataLegendCustomLabels
WellRenderIntDataLegendFGColor
WellRenderIntDataLegendLabelHeight
WellRenderIntDataLegendNumLabels
WellRenderIntDataLegendOrientation
WellRenderIntDataLegendShowBackground
WellRenderIntDataLegendTitleHeight
WellRenderIntDataLegendUseCustomLabels
WellRenderPathLabelFormatNumDigits
WellRenderPathLabelFormatPostfix
WellRenderPathLabelFormatPrefix
WellRenderPathLegendCustomLabels
WellRenderPathLegendLabelHeight
WellRenderPathLegendOrientation
WellRenderPathLegendShowBackground
WellRenderPathLegendTitleHeight
WellRenderPathLegendUseCustomLabels
Example
This example shows how to load well data and add a WellRender module to 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")
'Set VoxlerApp = GetObject("Voxler.Application")
'Make Voxler visible
VoxlerApp.Visible = True
'Access CommandApi
Set CommandApi = VoxlerApp.CommandApi
'Load a well data file
CommandApi.Construct("Import")
CommandApi.Option ("Path", VoxlerApp.Path+"Samples\SampleWellData.xlsx")
CommandApi.Option ("Options", "Defaults=1;Sheet=Collars")
CommandApi.Option ("GuiEnabled", "F")
CommandApi.Option ("ImportAsWells", "T")
CommandApi.Option ("StartRow", "2")
CommandApi.Option ("WellNameCol", "1")
CommandApi.Option ("TopXCol", "2")
CommandApi.Option ("TopYCol", "3")
CommandApi.Option ("TopZCol", "4")
CommandApi.Option ("AzCol", "5")
CommandApi.Option ("DipCol", "6")
CommandApi.Option ("TotalDepthCol", "7")
CommandApi.Do()
'Append the trajectories to the well data
CommandApi.Construct ("Import")
CommandApi.Option ("Path", VoxlerApp.Path+"Samples\SampleWellData.xlsx")
CommandApi.Option ("Options", "Defaults=1;Sheet=Trajectories")
CommandApi.Option ("GuiEnabled", "False")
CommandApi.Option ("ImportAsWells", "True")
'We want to append the data to the node "WellData"
CommandApi.Option ("CreateModule", "False")
CommandApi.Option ("TargetName", "WellData")
CommandApi.Option ("StartRow", "2")
CommandApi.Option ("WellNameCol", "1")
CommandApi.Option ("MDCol", "2")
CommandApi.Option ("AzCol", "3")
CommandApi.Option ("IncCol", "4")
CommandApi.Do()
'Compute the Paths
CommandApi.Construct ("ModifyModule")
CommandApi.Option ("Module", "WellData")
CommandApi.Option ("WellDataPathMethod", "3")
CommandApi.Option ("WellDataComputePaths", "True")
CommandApi.Do()
'Add a WellRender Module
CommandApi.Construct ("CreateModule")
CommandApi.Option ("SourceModule", "WellData")
CommandApi.Option ("Type", "WellRender")
CommandApi.Option ("AutoConnect", "True")
CommandApi.Do()
Used by: CommandApi object, CreateModule, ModifyModule
See Also
Automation Example - WellRender