| CDHIGetTemplateInfoEx Method |
Retrieve the file, DH Table name, type and channel list from an import template.
Available since Oasis montaj version: 7.3.0
License: Available to specially licensed modules.
Namespace: Geosoft.Desktop.GXNetAssembly: geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll)
Notes
As of version 6.0, the import templates (*.i3, *.i4) produced
by the Wholeplot import wizards contain the following lines:
FILE assay.txt (except for ODBC)
DRILLTYPE 3
DRILLTABLE Assay
The FILE is normally the input file name, except for ODBC, where it
is not defined.
The DRILLTYPE is one of DH_DATA_XXX, and the DRILLTABLE
is the name of the Wholeplot database table; e.g. Project_Assay.gdb
in the above case. The DRILLTABLE is only included in the template
for DH_DATA_FROMTO and DH_DATA_POINT, but this function will
return the appropriate table names (e.g. Collar, Survey, ENSurvey)
for the other types.
If the DRILLTYPE is NOT found in the template, a value of
DH_DATA_UNKNOWN is returned for the data type; likely an indication that this
is not a new-style template produced by Wholeplot.
This version also returns a list of the channels in the template checks can be made to
see if the import will exceed the database channel limit.
Syntax public static void IGetTemplateInfoEx(
string str1,
ref int i2,
ref string str3,
ref string str4,
CLST oLST5
)
Public Shared Sub IGetTemplateInfoEx (
str1 As String,
ByRef i2 As Integer,
ByRef str3 As String,
ByRef str4 As String,
oLST5 As CLST
)
public:
static void IGetTemplateInfoEx(
String^ str1,
int% i2,
String^% str3,
String^% str4,
CLST^ oLST5
)
static member IGetTemplateInfoEx :
str1 : string *
i2 : int byref *
str3 : string byref *
str4 : string byref *
oLST5 : CLST -> unit
Parameters
- str1
- Type: SystemString
Template name - i2
- Type: SystemInt32
See DH_DATAConstant - str3
- Type: SystemString
File name (blank for ODBC, or undefined). - str4
- Type: SystemString
Table name (blank for DH_DATA_UNKNOWN, or undefined). - oLST5
- Type: GeoEngine.Core.GXNetCLST
Channel list (returned)
See Also