 | CDHIGetTemplateInfo Method (CGXNETCore, String, Int32, String, String) |
Retrieve the file, DH Table name and type from an import template.
Namespace:
Geosoft.Desktop.GXNetX
Assembly:
geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2024.2.0.25
Syntaxpublic static void IGetTemplateInfo(
CGXNETCore gxNetShared,
string templ,
ref int data_type,
ref string file,
ref string table
)
public static void IGetTemplateInfo(
CGXNETCore gxNetShared,
string templ,
ref int data_type,
ref string file,
ref string table
)
Public Shared Sub IGetTemplateInfo (
gxNetShared As CGXNETCore,
templ As String,
ByRef data_type As Integer,
ByRef file As String,
ByRef table As String
)
Public Shared Sub IGetTemplateInfo (
gxNetShared As CGXNETCore,
templ As String,
ByRef data_type As Integer,
ByRef file As String,
ByRef table As String
)
public:
static void IGetTemplateInfo(
CGXNETCore^ gxNetShared,
String^ templ,
int% data_type,
String^% file,
String^% table
)
public:
static void IGetTemplateInfo(
CGXNETCore^ gxNetShared,
String^ templ,
int% data_type,
String^% file,
String^% table
)
static member IGetTemplateInfo :
gxNetShared : CGXNETCore *
templ : string *
data_type : int byref *
file : string byref *
table : string byref -> unit
static member IGetTemplateInfo :
gxNetShared : CGXNETCore *
templ : string *
data_type : int byref *
file : string byref *
table : string byref -> unit
Parameters
- gxNetShared
- Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - templ
- Type: SystemString
Template name - data_type
- Type: SystemInt32
<define>DH_DATA</define> - file
- Type: SystemString
File name (blank for ODBC, or undefined). - table
- Type: SystemString
Table name (blank for <define>DH_DATA_UNKNOWN</define>, or undefined).
Remarks
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 <define>DH_DATA_FROMTO</define> and <define>DH_DATA_POINT</define>, 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
<define>DH_DATA_UNKNOWN</define> is returned for the data type; likely an indication that this
is not a new-style template produced by Wholeplot.
See Also