Click or drag to resize
CGUIiDatamineType Method
Returns the type of a Datamine file.

Available since Oasis montaj version: 5.0.0
License: Available to anyone with an Oasis Montaj license.  
Limitations: May not be available if running outside of a Oasis Montaj or from a command line program.  

Namespace: Geosoft.Desktop.GXNet
Assembly: geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll)
Notes
Often, a Datamine file can be opened a number of different ways (e.g. as a string file or a as wireframe (point) file. The following function checks to see if there is a choice to be made between types supported by Geosoft for import. If not, it just returns the original type "hint" from Datamine. If there is a choice, it puts up a dialog with the choices for the user to pick from. Do a bit-wise AND with the returned type to determine the file type (or the type selected). Currently supported overlapping types/choices: dmString dmWireframePoint
Syntax
public static int iDatamineType(
	string str1,
	ref int i2
)

Parameters

str1
Type: SystemString
File Name (for display purposes only)
i2
Type: SystemInt32

Return Value

Type: Int32
0 - OK -1 - Cancel
See Also