| CGUIiDatamineType Method |
Returns the type of a Datamine file.
Available since Oasis montaj version: 5.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.GXNetXAssembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.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(
CGXNETCore gxNetShared,
string file,
ref int type
)
Public Shared Function iDatamineType (
gxNetShared As CGXNETCore,
file As String,
ByRef type As Integer
) As Integer
public:
static int iDatamineType(
CGXNETCore^ gxNetShared,
String^ file,
int% type
)
static member iDatamineType :
gxNetShared : CGXNETCore *
file : string *
type : int byref -> int
Parameters
- gxNetShared
- Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - file
- Type: SystemString
File Name (for display purposes only) - type
- Type: SystemInt32
Return Value
Type:
Int32
0 - OK
-1 - Cancel
See Also