Click or drag to resize
CDULabTemplate Method
Makes a default template from a lab assay file.

Available since Oasis montaj version: 5.0
License: Available to anyone.  

Namespace: Geosoft.Desktop.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
The template can be used to import the file using sImportBIN_DU. The first column is assumed to be the sample number. If the unit label line is the same as the column label line, column labels are assummed to be followed by unit labels using the format "Au-ppm", "Au ppm" or "Au(ppm)". The number of channels is determined from the number of columns in the data channel. If there are more column labels or unit labels, the last labels are assumed to be correct. If there are fewer line labels, default labels "Col_n", where n is the column number, will be created and no unit labels will be defined.
Syntax
public static void LabTemplate(
	CGXNETCore gxNetShared,
	string data,
	string templ,
	int type,
	string delimit,
	int name_off,
	int unit_off,
	int data_off,
	int sample_type,
	int data_type
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
data
Type: SystemString
Data file name
templ
Type: SystemString
New template name
type
Type: SystemInt32
<define>DU_LAB_TYPE</define>
delimit
Type: SystemString
Delimiter string
name_off
Type: SystemInt32
Offset to column labels line (0 for first line)
unit_off
Type: SystemInt32
Offset to unit labels line, -1 if none
data_off
Type: SystemInt32
Offset to first line that contains data
sample_type
Type: SystemInt32
Sample channel element type, recommend -10 for 10-character ASCII, or <define>GS_LONG</define> for numbers.
data_type
Type: SystemInt32
Default channel element type, recommend <define>GS_FLOAT</define>
See Also