GXGUI class

class GXGUI(handle=0)

GXGUI class.

These are graphical functions that typically create a dialog-style window for a specific function. Examples include file import wizards, and the Histogram and Scatter tools.

classmethod browse_dir(title, default, dir_path)

Browses for a specific directory.

Parameters:
  • title (str) – Title of the Form
  • default (str) – Default path (Can be “”)
  • dir_path (str_ref) – Result Path Buffer (default on input)
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

classmethod color_form(col, no_col)

Select a color.

Parameters:
  • col (int_ref) – Color (modified)
  • no_col (int) – Ask about C_TRANSPARENT if white is selected (1: yes, 0: no)?
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Color value is set on input, and new value returned. If the input color type is C_TRANSPARENT, then the color is set to white, if any other type is input the output is guaranteed to be of the same type.

If no_col is 1, then on exit, if white is selected, the user is prompted: ‘Do you want white (Yes) or “None” (No) ?’ and the color is converted as requested. If this is not the case, the C_TRANSPARENT is converted to white (if “Ok” is selected) and no choice is offered.

classmethod color_transform(itr, st)

Define an GXITR of up to 8 zones.

Parameters:
Returns:

0 if OK 1 if user cancels

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: The statistics object is required in order to determine data ranges, percentiles, etc. Create it using GXST.create_exact, or be sure to enable histogram statistics.

classmethod color_transform_ex(itr, st, zones, load_save, file)

Define an GXITR of up to 12 zones, with file load/save buttons.

Parameters:
  • itr (GXITR) – GXITR object (modified)
  • st (GXST) – GXST object (input)
  • zones (int) – Max number of zones (8 or 12)
  • load_save (int) – Show file load/save buttons (TRUE or FALSE)?
  • file (str_ref) – Default color transform file name
Returns:

0 if OK 1 if user cancels

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: The statistics object is required in order to determine data ranges, percentiles, etc. Create it using GXST.create_exact, or be sure to enable histogram statistics. The color transform file name is used as the default when the save button is pushed, and is updated both after the load and save buttons are pushed by the value input or selected by the user.

classmethod coord_sys_wizard(ipj, editable, mode, source_label, source)

Launch the coordinate system definition/display GXGUI.

Parameters:
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Launches the new GX.Net single-dialog coordinate system definition dialog. The input GXIPJ is modified on return if OK is selected (and the editable parameter is 1). The “Data source label” and “Data source” is information displayed in the dialog for the user to know where the GXIPJ came from (e.g. “Grid: X.grd”)

classmethod coord_sys_wizard_grid(ipj, target_ipj, editable, mode, source_label, source, nx, ny, x0, y0, dx, dy, rot)

Launch the coordinate system definition/display GXGUI.

Parameters:
  • ipj (GXIPJ) – Original grid GXIPJ object
  • target_ipj (GXIPJ) – Source (target) grid GXIPJ object. This is supplied so the modified orientation can be calculated and displayed.
  • editable (int) – Editable GXIPJ (0:No, 1:Yes)
  • mode (int) – COORDSYS_MODE constants
  • source_label (str) – Data source label
  • source (str) – Data source
  • nx (int) – Number of cells in X
  • ny (int) – Number of cells in Y
  • x0 (float_ref) – Grid orgin X (grid’s own coordinate system)
  • y0 (float_ref) – Grid orgin Y (grid’s own coordinate system)
  • dx (float_ref) – Grid cell size X
  • dy (float_ref) – Grid cell size Y
  • rot (float_ref) – Grid rotation angle (degrees CCW)
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 9.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Same as coord_sys_wizard_licensed but allows the original grid info to be adjusted when projections on section or oriented plan grids are modified. In the tool, it is the “modified” orientation required to keep the edited projection’s grid in the same location as it was in the target projection.

classmethod coord_sys_wizard_licensed(ipj, editable, mode, source_label, source)

Launch the coordinate system definition/display GXGUI.

Parameters:
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: Same as coord_sys_wizard_licensed but will always be editable. The other method is not editable in the viewer while this one is.

classmethod create_wnd_from_hwnd(p1)

Create a standard WND object from an HWND.

Parameters:p1 (int) – HWND Handle
Returns:x - WND object created
Return type:int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: The object returned must be destroyed by the destroy object call.

classmethod cumulative_percent(file, itr)

Define a percent-based GXITR of up to 12 zones.

Parameters:
  • file (str_ref) – Default color transform file name
  • itr (GXITR) – GXITR object (returned)
Returns:

0 if OK 1 if user cancels

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: The GXITR values are interpreted as cumulative percent values, using the “PERCENT=1” value in the GXITR‘s GXREG.

Note that processes using ITRs do not automatically know to convert between percent values and “actual” data values. The GXREG “PERCENT” value is simply a flag to indicate to a user that the values are intended to be in the range from 0 < x < 100. The GXITR should not, therefore, be applied directly to data unless that data is already given in percent.

If the file name is defined on input, the initial GXITR will be loaded from it. If it is left blank, a default 5-color transform with The color transform file name is used as the default when the save button is pushed, and is updated both after the load and save buttons are pushed by the value input or selected by the user.

classmethod custom_file_form(title, filter, default, file_path, type, multi)

General file Open/Save Form for Multiple/Single file selections and custom filter capability

Parameters:
  • title (str) – Title of the Form
  • filter (str) – Custom filter.
  • default (str) – Default value
  • file_path (str_ref) – Where the file name(s) is returned
  • type (int) – FILE_FORM constants
  • multi (int) – Allow Multiple file selections = TRUE Single file selections = FALSE
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 9.3.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Remember to make the string size big enough for multiple file selections. In the case of multiple selections the names will be separated by a semicolon and only the first file will contain the full path.

classmethod dat_file_form(title, default, psz_file_path, type, validation_type, multi)

Grid and Image file Open/Save Form for Multiple/Single file selections

Parameters:
  • title (str) – Title of the Form
  • default (str) – Default value
  • psz_file_path (str_ref) – Where the file name(s) is returned
  • type (int) – DAT_TYPE constants
  • validation_type (int) – FILE_FORM constants
  • multi (int) – Allow Multiple file selections = TRUE Single file selections = FALSE
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Remember to make the string size big enough for multiple file selections. In the case of multiple selections the names will be separated by a semicolon and only the first file will contain the full path.

When using the multiple flag on any of these functions please be aware that the string returned will be in the format: drive:path1path2name.grid|name2.grid|name3.grid(QUALIFIERS) All grids are required to be of the same type.

classmethod database_type(name, type)

Returns the type string of an external DAO database.

Parameters:
  • name (str) – File Name
  • type (str_ref) – Database type (returned)
Returns:

0 - OK -1 - Cancel terminates on error

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: If the file extension is “mdb”, then an MSJET (Microsoft Access) database is assumed. If the file name is “ODBC”, then “ODBC” is returned as the type. Otherwise, a dialog appears listing the other valid DAO database types.

classmethod datamine_type(file, type)

Returns the type of a Datamine file.

Parameters:file (str) – File Name (for display purposes only)
Returns:0 - OK -1 - Cancel
Return type:int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: 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

classmethod export_xyz_template_editor(db, template, size)

Allows the user to edit XYZ export template using a complex dialog. The Template name may change during editing.

Parameters:
  • db (GXDB) – Database
  • template (str) – Name of the Template (can change)
  • size (int) – Size of the Template
Returns:

0 - OK 1 - Error

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: Only uses the current GXDB. This function does not exactly work as supposed to. Instead of using the GXEDB handle passed to it, it only will use the current GXDB. Please see ExportXYXTemplateEditorEx_GUI for an updated function.

classmethod export_xyz_template_editor_ex(edb, template)

Allows the user to edit an XYZ export template using a complex dialog. The template name may change during editing.

Parameters:
Returns:

0 - OK 1 - Error

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

classmethod fft2_spec_filter(spec_file_name, con_file_name)

Interactive GXFFT2 radially averaged power spectrum filter

Parameters:
  • spec_file_name (str) – Name of the input spectrum file
  • con_file_name (str) – Name of the output control file

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

classmethod file_filter_index(filter)

Return the FILE_FILTER_XXX value for a file filter string.

Parameters:filter (str) – Input filter string
Returns:FILE_FILTER constants, -1 if not found
Return type:int

New in version 7.0.

License: Geosoft Open License

Note: For example, if “Database (*.gdb)” is input, then the FILE_FILTER_GDB value is returned.

classmethod gcs_datum_warning_shp(data_source, ipj)

Launch the GCS Datum Warning dialog for GXSHP files.

Parameters:
  • data_source (str) – Data source
  • ipj (GXIPJ) – GXIPJ object
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 7.1.

License: Geosoft Open License

Note: Runs the GCS Warning dialog with one data source

classmethod gcs_datum_warning_shp_ex(source_lst, datum_from_lst, ldtlst, mview)

Launch the GCS Datum Warning dialog for GXSHP files.

Parameters:
  • source_lst (GXLST) – Data source names
  • datum_from_lst (GXLST) – Corresponding datum names
  • ldtlst (GXLST) – Returned corresponding LDT names
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 7.1.

License: Geosoft Open License

Note: Runs the GCS Warning dialog with multiple data sources

classmethod gcs_datum_warning_shpdb_ex(source_lst, datum_from_lst, ldtlst, db)

Launch the GCS Datum Warning dialog for GXSHP files (Database).

Parameters:
  • source_lst (GXLST) – Data source names
  • datum_from_lst (GXLST) – Corresponding datum names
  • ldtlst (GXLST) – Returned corresponding LDT names
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 7.1.

License: Geosoft Open License

Note: Runs the GCS Warning dialog with multiple data sources (Database)

classmethod gen_file_form(title, filt_vv, filter, default, file_path, type, multi)

General file Open/Save Form for Multiple/Single file selections and multiple filter capability

Parameters:
  • title (str) – Title of the Form
  • filt_vv (GXVV) – INT GXVV of file filters to use FILE_FILTER constants The first one is default, can pass (GXVV) 0 for to use next parameter.
  • filter (int) – FILE_FILTER constants (ignored if parameter above is not zero)
  • default (str) – Default value
  • file_path (str_ref) – Where the file name(s) is returned
  • type (int) – FILE_FORM constants
  • multi (int) – Allow Multiple file selections = TRUE Single file selections = FALSE
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Remember to make the string size big enough for multiple file selections. In the case of multiple selections the names will be separated by a semicolon and only the first file will contain the full path.

Defined Functions The following four functions are handy defines and simply pass the appropriate parameter.

iFileOpen_GUI iFileSave_GUI iMultiFileOpen_GUI iMultiFileSave_GUI

classmethod get_area_of_interest(min_x, min_y, max_x, max_y, ply, ipj)

Get the current area of interest from the application.

Parameters:
Returns:

AOI_RETURN_STATE constants

Return type:

int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Depending on what is currently visible on screen and the defined coordinate system the user may be prompted by a warning and optionaly cancel the process.

classmethod get_area_of_interest_3d(min_x, min_y, min_z, max_x, max_y, max_z, ply, ipj)

Get the current area of interest from the application in 3D.

Parameters:
Returns:

AOI_RETURN_STATE constants

Return type:

int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Depending on what is currently visible on screen and the defined coordinate system the user may be prompted by a warning and optionaly cancel the process.

classmethod get_client_window_area(min_x, min_y, max_x, max_y)

Get the location of the Oasis montaj client window.

Parameters:
  • min_x (int_ref) – X Min returned (0)
  • min_y (int_ref) – Y Min returned (0)
  • max_x (int_ref) – X Max returned (width)
  • max_y (int_ref) – Y Max returned (height)

New in version 9.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: Returns the coordinates of the client window area (where MDI document windows are placed). The returned coordinates are 0,0 for the minimum X and Y and the window width width and height for the maximum X and Y.

classmethod get_dat_defaults(flags, open, ext, qual)

Return the user default extension and qualifier for grids/images.

Parameters:

New in version 7.0.

License: Geosoft Open License

Note: The default grid/image filters are normally stored in “MONTAJ.DEFAULT_XGD_IN” and “MONTAJ.DEFAULT_XGD_OUT”

If no filter is defined, or the filter is not found then “grd” and “GRD” are returned as the default extension and qualifier.

classmethod get_file_filter(file_filter, filter, mask, ext, path)

Return the defined filter, mask, extension and directory for an input filter.

Parameters:

New in version 7.0.

License: Geosoft Open License

Note: Returns the four parts of the file filter; e.g. for FILE_FILTER_GDB it returns:

Filter: “Database (*.gdb)” Mask: “*.gdb” Extension: “gdb” Directory: “GS_DIRECTORY_NONE

This function is useful for constuction open/save dialog file filters, especially in GX.Net functions.

classmethod get_gs_directory(path, dir)

Return the directory path for value of GS_DIRECTORY constants.

Parameters:

New in version 7.0.

License: Geosoft Open License

Note: Works along with the get_file_filter function. Note that most values of FILE_FILTER_XXX will return GS_DIRECTORY_NONE, and give the current workspace directory.

This function is useful for constuction open/save dialog file filters, especially in GX.Net functions.

classmethod get_parent_wnd()

Get the current parent window

Returns:Parent window.
Return type:int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

classmethod get_printer_lst(lst)

Gets a list of all printers.

Parameters:lst (GXLST) – List to place into

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

classmethod get_window_position(left, top, right, bottom, state)

Get the Oasis montaj window’s position state

Parameters:

New in version 9.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

classmethod get_window_state()

Retrieve the current state of the Oasis montaj window

Returns:WINDOW_STATE constants
Return type:int

New in version 9.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

classmethod grid_stat_hist(grid_name)

Display Histogram of grid

Parameters:grid_name (str) – Name of the grid to get stats from

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

classmethod import_ascii_wizard(name, temp)

Generate a template file from a gui.

Parameters:
  • name (str) – Data file name
  • temp (str) – Template to make
Returns:

0 - OK 1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

classmethod import_chem_database(name, temp, table, type)

Generate a template file for importing Geochems Database.

Parameters:
Returns:

0 - OK -1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

classmethod import_chem_database_ado(connect, temp, table, type)

Improved template creation for importing geochem database (ADO).

Parameters:
  • connect (str) – External database connection string (Blank for OLEDB Wizard)
  • temp (str) – Template to make
  • table (str_ref) – Name of table
  • type (int) – IMPCH_TYPE constants
Returns:

0 - OK -1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: This is an improved version of ImportChemDatabase_GUI using the new ADO technology, as opposed to DAO. Use in conjuction with GXDU.import_ado. See also ImportDatabaseADO_GUI.

classmethod import_chem_wizard(name, temp, type)

Generate a template file for importing geochems.

Parameters:

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

classmethod import_database(name, temp, table)

Create template to import an external database table.

Parameters:
  • name (str) – External database file name
  • temp (str) – Template to make
  • table (str_ref) – Name of table imported (returned)
Returns:

0 - OK -1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: This is used to select a single database table, and selected fields from that table. If the database is not Microsoft Access (type .mdb), an introductory dialog requests the file type. This function DOES NOT import the table itself, but creates an import template which may be used to import the table (see GXDU.import_dao).

classmethod import_database_ado(connect, temp, table)

Create template to import an external database table (ADO Version).

Parameters:
  • connect (str) – External database connection string (Blank for OLEDB Wizard)
  • temp (str) – Template to make
  • table (str_ref) – Name of table imported (returned)
Returns:

0 - OK -1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: 1. This is used to select a single database table, and
selected fields from that table.
  1. This function DOES NOT import the table itself, but creates an import template which may be used to import the table (see GXDU.import_ado).
  2. If connection string is of type “FILENAME=...” the connection will attempt to resolve it as a file database. (see also ODBCFileConnect_GUI)
classmethod import_database_sql(name, sql, temp, line)

Create template to import an external database table, created using SQL.

Parameters:
  • name (str) – External database file name
  • sql (str) – Text file with SQL queries to use, (“” - get from database)
  • temp (str) – Import template to make
  • line (str_ref) – Name of table imported (returned)
Returns:

0 - OK -1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: 1. This is used to build an Oasis montaj group (line) from

one or more database tables and fields, by selecting from one or more SQL selection queries. The list of queries is read from a text file with the following syntax:

Query_Name_1 Query... Query... (continued) ... ... END_QUERY Query_Name_2 etc.

  1. Each query has a title line, the query itself, then the “END_QUERY” line to finish. The title of a subsequent query is on the line after an “END_QUERY” line.
  2. If the text file parameter is left blank (“”), then selection queries in the database itself are listed. In addition to the pre-defined queries, there is a “User Defined” query which may be filled in by the user.
  3. This function DOES NOT import the table itself, but creates an import template which may be used to import the data (see GXDU.import_dao).
  4. If connection string is of type “FILENAME=...” the connection will attempt to resolve it as a file database. (see also ODBCFileConnect_GUI)
classmethod import_database_sqlado(connect, sql, temp, line)

Create template to import an external database table, created using SQL (New ADO Version).

Parameters:
  • connect (str) – External database connection string (Blank for OLEDB Wizard)
  • sql (str) – Text file with SQL queries to use, (“” - get from database)
  • temp (str) – Import template to make
  • line (str_ref) – Name of table imported (returned)
Returns:

0 - OK -1 Cancel

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: This is used to build an Oasis montaj group (line) from one or more database tables and fields, by selecting from one or more SQL selection queries. The list of queries is read from a text file with the following syntax:

Query_Name_1 Query... Query... (continued) ... ... END_QUERY Query_Name_2 etc.

Each query has a title line, the query itself, then the “END_QUERY” line to finish. The title of a subsequent query is on the line after an “END_QUERY” line.

If the text file parameter is left blank (“”), then selection queries in the database itself are listed. In addition to the pre-defined queries, there is a “User Defined” query which may be filled in by the user.

This function DOES NOT import the table itself, but creates an import template which may be used to import the data (see GXDU.import_dao).

classmethod import_drill_database_ado(connect, temp, table, type, reg)

Generate a template file for importing drill holes.

Parameters:
  • connect (str) – External database connection string (Blank for OLEDB Wizard)
  • temp (str) – Template to make
  • table (str_ref) – Name of table
  • type (int_ref) – Type of import returned DH_DATA constants
  • reg (GXREG) – Drill Hole Object GXREG handle
Returns:

0 - OK -1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: This is an improved version of ImportDrillDatabase_GUI using the new ADO technology, as opposed to DAO. Use in conjunction with GXDU.import_ado. See also ImportDatabaseADO_GUI.

classmethod import_drill_database_ado2(connect, temp, table, type, reg)

Same as import_drill_database_ado, but template name is returned.

Parameters:
  • connect (str) – External database connection string (Blank for OLEDB Wizard)
  • temp (str_ref) – Template to make (if left blank, the created template name is returned)
  • table (str_ref) – Name of table
  • type (int_ref) – Type of import returned DH_DATA constants
  • reg (GXREG) – Drill Hole Object GXREG handle
Returns:

0 - OK -1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: If it is not defined on input, the template name is set to be the Wholeplot table name; e.g. “HOLESURVEY.i4” for “Project_HOLESURVEY”

classmethod import_drill_database_esri(connect, temp, table, type, geochem, reg)

Same as iImportDrillDatabaseADO2_GUI, but from an ArcGIS Geodatabase

Parameters:
  • connect (str) – External database connection string (e.g. “d:Personaltest.mdb|Table” or “d:Filetest.gdb|TableX|FeatureClassY)”
  • temp (str_ref) – Template to make (if left blank, the created template name is returned)
  • table (str_ref) – Name of table
  • type (int_ref) – Type of import returned DH_DATA constants
  • geochem (bool) – Geosoft Geochemistry Database?
  • reg (GXREG) – Drill Hole Object GXREG handle
Returns:

0 - OK -1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: If it is not defined on input, the template name is set to be the Wholeplot table name; e.g. “HOLESURVEY.i4” for “Project_HOLESURVEY”

classmethod import_drill_database_odbc(connect, temp, table, type, reg)

Generate a template file for importing drill holes from ODBC database data.

Parameters:
Returns:

0 - OK -1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: If the input connection string is empty (“”), then the ODBC connection dialogs will appear (e.g. to connect to a machine database) before the import wizard is run. The connect string used for this connection is then returned. This string can then be used on input to skip the ODBC connection dialogs and go straight to the Wholeplot import wizard. Because the name of the database is not necessarily known, the template name is created from the name of the table opened - e.g. “HOLELOCATION.i4”.

classmethod import_drill_database_odbc_maxwell(connect, temp, table, type, reg)

Same as import_drill_database_odbc but customized for Maxwell.

Parameters:
Returns:

0-OK 1-Cancel

Return type:

int

New in version 8.3.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: Same as import_drill_database_odbc but customized for Maxwell.

classmethod import_drill_wizard(name, temp, table, type, reg)

Generate a template file for importing drill holes.

Parameters:
  • name (str) – Data file name
  • temp (str) – Template to make
  • table (str_ref) – Name of table
  • type (int_ref) – Type of import returned DH_DATA constants
  • reg (GXREG) – Drill Hole Object GXREG handle

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

classmethod import_template_sql(name, temp, sql, line)

Create template to import an external database table; provide query.

Parameters:
  • name (str) – External database file name
  • temp (str) – Import template to make
  • sql (str) – SQL selection query to run on database
  • line (str) – Name of Oasis table to create
Returns:

0 - OK -1 Cancel terminates on error

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: This is similar to import_database_sql, but dispenses with the dialog offering a selection of queries. Instead, the user supplies the query as a string.

This function DOES NOT import the table itself, but creates an import template which may be used to import the data (see GXDU.import_dao).

classmethod import_template_sqlado(name, temp, sql, line)

Create template to import an external database table; provide query.

Parameters:
  • name (str) – External database connection string (Blank for OLEDB Wizard)
  • temp (str) – Import template to make
  • sql (str) – SQL selection query to run on database
  • line (str) – Name of Oasis table to create
Returns:

0 - OK -1 - Cancel terminates on error

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: This is similar to import_database_sql, but dispenses with the dialog offering a selection of queries. Instead, the user supplies the query as a string.

This function DOES NOT import the table itself, but creates an import template which may be used to import the data (see GXDU.import_ado).

classmethod import_xyz_template_editor(db, template, size, file)

Allows the user to edit XYZ import templates using a complex dialog. The Template name may change during editing.

Parameters:
  • db (GXDB) – Database
  • template (str) – Name of the Template (can change)
  • size (int) – Size of the Template
  • file (str) – Name of the XYZ file to base it on
Returns:

0 - OK 1 - Error

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

classmethod internet_trust()

Change the Internet Trust Relationships

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

is_null()

Check if this is a null (undefined) instance

Returns:True if this is a null (undefined) instance, False otherwise.
Return type:bool
classmethod launch_geo_dotnetx_tool(dll, func, meta)

Launch a user created .Net GEOXTOOL.

Parameters:
  • dll (str) – Assembly name
  • func (str) – Control Class Name
  • meta (GXMETA) – GXMETA Handle (holding tool configuration data)

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

classmethod launch_geo_dotnetx_tool_ex(dll, func, meta, align, dock, width, height)

Launch a user created .Net GEOXTOOL.

Parameters:

New in version 9.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

classmethod launch_geo_x_tool(dll, func, meta)

Launch a user created GEOXTOOL.

Parameters:
  • dll (str) – DLL name
  • func (str) – Function Name
  • meta (GXMETA) – GXMETA Handle (holding tool configuration data)

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

classmethod launch_geo_x_tool_ex(dll, func, meta, align, dock, width, height)

Launch a user created GEOXTOOL.

Parameters:

New in version 9.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

classmethod launch_single_geo_dotnetx_tool(dll, func, meta)

Launch a user created .Net GEOXTOOL ensuring a single instance.

Parameters:
  • dll (str) – Assembly name
  • func (str) – Control Class Name
  • meta (GXMETA) – GXMETA Handle (holding tool configuration data)

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

classmethod launch_single_geo_dotnetx_tool_ex(dll, func, meta, align, dock, width, height)

Launch a user created .Net GEOXTOOL ensuring a single instance.

Parameters:

New in version 9.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

classmethod line_pattern_form(pattern, thickness, pitch, colour)

Select a line pattern.

Parameters:
  • pattern (int_ref) – Current Pattern
  • thickness (float_ref) – Current Thickness
  • pitch (float_ref) – Current Pitch
  • colour (int_ref) – Current Pattern Color
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 8.1.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Same as pattern_form but for line patterns.

classmethod meta_data_tool(meta, root_token, schema)

Edit a GXMETA object

Parameters:
  • meta (GXMETA) – Meta object
  • root_token (int) – Root Token, H_META_INVALID_TOKEN for root
  • schema (int) – Display schema information ?
Returns:

0 - OK non-zero - Cancel

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

classmethod meta_data_viewer(meta, root_token, schema)

View a GXMETA object

Parameters:
  • meta (GXMETA) – Meta object
  • root_token (int) – Root token, H_META_INVALID_TOKEN for root
  • schema (int) – Display schema information ?

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

classmethod null()

A null (undefined) instance of GXGUI

Returns:A null GXGUI
Return type:GXGUI
classmethod odbc_file_connect(file, connect, usage, table)

Get the connection string for a file database as well as optional table name and FileUsage attribute

Parameters:
  • file (str) – File Name
  • connect (str_ref) – Connection string (returned)
  • usage (int) – File Usage (0 - ODBC drivers not queried, 1 - Directory containing tables, 2 - File containing tables)
  • table (str_ref) – Table name of file (returned if plUsage==1)
Returns:

0 - OK -1 - Cancel terminates on error

Return type:

int

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: If the file extension is “mdb” or “xls” then a Microsoft Access or Excel database is assumed. Otherwise, a dialog appears listing the installed ODBC file database drivers. If the driver takes a directory as a database (FileUsage==1) the table name is also returned. This is needed because the table name may or may not include the file extension.

classmethod pattern_form(pat, size, thick, dense, col, back_col)
  • Select a pattern.
Parameters:
  • pat (int_ref) – Current Pattern
  • size (float_ref) – Current Size, // returned
  • thick (int_ref) – Current Thick (0-100) // returned
  • dense (float_ref) – Current Density, // returned
  • col (int_ref) – Current Pattern Color // passed in and returned
  • back_col (int_ref) – Current Background Color // passed in and returned; can be C_TRANSPARENT
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Pattern values set on input, and new values returned. Solid fill is indicated by Pattern number 0.

Returned Values (not set on input)

Size
pattern tile size in mm.
Thick
pattern line thickness in percent of the tile size. valid range is 0-100.
Density
Tile spacing. A value of 1 means tiles are laid with no overlap. A value of 2 means they overlap each other.

The pattern Angle and Style parameters are not user-definable.

classmethod print_file(file)

Prints a file to current printer

Parameters:file (str) – Filename string

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

classmethod render_line_pattern(hdc, left, bottom, right, top, pattern, thickness, pitch, col, is_enabled, is_button, is_selected)

Render a line pattern.

Parameters:
  • hdc (int) – DC Handle
  • left (int) – Left value of the render rect in Windows coordinates (bottom>top)
  • bottom (int) – Bottom value
  • right (int) – Right value
  • top (int) – Top value
  • pattern (int) – Pattern number
  • thickness (float) – Pattern thickness
  • pitch (float) – Pattern pitch
  • col (int) – Pattern color
  • is_enabled (int) – Is this window enabled?
  • is_button (int) – Is this a button?
  • is_selected (int) – Is this window selected?

New in version 8.1.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Same as render_pattern but for line patterns.

classmethod render_pattern(hdc, left, bottom, right, top, pat, size, thick, dense, col, back_col, is_enabled, is_button, is_selected)
  • Render a pattern.
Parameters:
  • hdc (int) – DC handle
  • left (int) – Left value of the render rect in Windows coordinates (bottom>top)
  • bottom (int) – Bottom value
  • right (int) – Right value
  • top (int) – Top value
  • pat (int) – Pattern number
  • size (float) – Pattern size, // input GS_R8DM to use default
  • thick (int) – Pattern thick (0-100) // input GS_S4DM to use default
  • dense (float) – Pattern density, // input GS_R8DM to use default
  • col (int) – Pattern color // input GS_S4DM to use default
  • back_col (int) – Pattern background color // input GS_S4DM to use default; can be C_TRANSPARENT
  • is_enabled (int) – Is this window enabled?
  • is_button (int) – Is this a button?
  • is_selected (int) – Is this window selected?

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Renders a Geosoft pattern to a Windows DC.

classmethod set_parent_wnd(wnd)

Set the current parent WND

Parameters:wnd (int) – New Parent Window

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: The parent WND is used by all modal dialogs as a parent to ensure the dialog is correctly modal.

classmethod set_printer(printer)

Sets the Printer.

Parameters:printer (str) – Printer Name

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

classmethod set_prog_always_on(on)

Ability to set the progress bar to stay visible even if main application is processing messages

Parameters:on (bool) – Should progress bar remain visible

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: In montaj the progress bar is hidden when the main window start processing messages. This is not always desirable in some 3rd party apps, hence this function.

classmethod set_window_position(left, top, right, bottom, state)

Get the Oasis montaj window’s position and state

Parameters:
  • left (int) – Window left position
  • top (int) – Window top position
  • right (int) – Window right position
  • bottom (int) – Window bottom position
  • state (int) – Window state WINDOW_STATE constants

New in version 9.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

classmethod set_window_state(state)

Changes the state of the Oasis montaj window

Parameters:state (int) – WINDOW_STATE constants

New in version 9.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

classmethod show_3d_viewer_dialog(title, o3dv)

Display a standalone 3D viewer

Parameters:
  • title (str) – Title
  • o3dv (str) – 3D View name (.geosoft_3dv)

New in version 9.3.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

Note: Any changes made to the 3D View will be persisted.

classmethod show_direct_hist(min, max, mean, std_dev, median, items, vv)

Display histogram of data directly

Parameters:
  • min (float) – Min Value to display
  • max (float) – Max Value to display
  • mean (float) – Mean Value to display
  • std_dev (float) – StdDev Value to display
  • median (float) – Median Value to display
  • items (int) – Items Number of items this comprises
  • vv (GXVV) – GXVV holding hist counts

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

classmethod show_hist(st)

Display Histogram of data from GXST

Parameters:st (GXST) – Statistics obj

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

classmethod simple_map_dialog(map, title, help_id)

General purpose map display GXGUI with no interaction.

Parameters:
  • map (GXMAP) – GXMAP object
  • title (str) – Title
  • help_id (str) – HelpID

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: This function displays a map in a simple resizable dialog that fits the map into it. It is generally useful to display temporary maps as graphs (e.g. variograms).

classmethod symbol_form(symb_font, geo_font, weight, symb_num, symb_size, symb_ang, edge_col, fill_col)
  • Select a symbol.
Parameters:
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Symbols are set on input, and new values returned.

classmethod thematic_voxel_info(vox)

Display GX.Net thematic voxel info GXGUI.

Parameters:vox (GXVOX) – GXVOX object

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Displays the thematic voxel codes, colors, total volume for each code, and number of valid items (cubes) for each code. This is a replacement for the numeric stats done on normal numerical voxel grids.

classmethod two_panel_selection(ls_tf, ls_ts, title)

General purpose two-panel selection.

Parameters:
  • ls_tf (GXLST) – All available items for selection.
  • ls_ts (GXLST) – Selections (altered on output)
  • title (str) – Title for dialog
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Takes as input two LSTs, one contains all available items, the second currently selected items. These are processed, and in the left panel are displayed all items in the first GXLST not in the selection GXLST, and on the right all items in the first GXLST which are in the selection GXLST. (Items in the selection GXLST NOT in the first GXLST are ignored). Once the user has finalized the selections, the final selections are returned in the selection GXLST.

Selections and display are based on the LST_ITEM_NAME part of the GXLST item, but on export both the LST_ITEM_NAME and LST_ITEM_VALUE elements of the selected items from the first GXLST are transferred to the second list for output.

The sConvertToCSV_LST and sConvertFromCSV_LST functions in lst.h can be used to convert the selection LSTs to forms that can be stored and retrieved from GX parameters (or GXREG or INI, etc.).

classmethod two_panel_selection2(ls_tf, ls_ts, title)

Two-panel selection, items not sorted alphabetically.

Parameters:
  • ls_tf (GXLST) – All available items for selection.
  • ls_ts (GXLST) – Selections (altered on output)
  • title (str) – Title for dialog
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Same as two_panel_selection, but the items in the two lists are not sorted alphabetically, but are ordered exactly as input, and when an item is selected it is added at the end of the lists.

classmethod two_panel_selection_ex(ls_tf, ls_ts, sorted, allow_no_select, title)

Two-panel selection; options for sort and ability to select no items.

Parameters:
  • ls_tf (GXLST) – All available items for selection.
  • ls_ts (GXLST) – Selections (altered on output)
  • sorted (int) – Sort items alphabetically (0:No, 1:Yes)
  • allow_no_select (int) – Allow no items selected (0:No, 1:Yes)
  • title (str) – Title for dialog
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Same as two_panel_selection, but the items in the two lists are not sorted alphabetically, but are ordered exactly as input, and when an item is selected it is added at the end of the lists.

classmethod two_panel_selection_ex2(ls_tf, ls_ts, sorted, allow_no_select, title, help)

Two-panel selection; extended options including a help link.

Parameters:
  • ls_tf (GXLST) – All available items for selection.
  • ls_ts (GXLST) – Selections (altered on output)
  • sorted (int) – Sort items alphabetically (0:No, 1:Yes)
  • allow_no_select (int) – Allow no items selected (0:No, 1:Yes)
  • title (str) – Title for dialog
  • help (str) – Help link
Returns:

0 - Ok 1 - Cancel

Return type:

int

New in version 5.0.

License: Geosoft Open License

Limitations: May not be available while executing a command line program.

Note: Same as two_panel_selection_ex, but user can specify a help link.

classmethod voxel_stat_hist(vox_name)

Display Histogram of Voxel

Parameters:vox_name (str) – Name of the Voxel to get stats from

New in version 5.0.

License: Geosoft End-User License

Limitations: May not be available while executing a command line program.

AOI_RETURN_STATE constants

AOI query return state

AOI_RETURN_CANCEL

User canceled

gxapi.AOI_RETURN_CANCEL = -1
AOI_RETURN_NODEFINE

User chose to continue with no AOI defined or available

gxapi.AOI_RETURN_NODEFINE = 0
AOI_RETURN_DEFINE

User chose to continue and defined valid AOI parameters

gxapi.AOI_RETURN_DEFINE = 1

COORDSYS_MODE constants

Coordinate system wizard GXIPJ types allowed on return. The wizard present three types of projections for selection by the user, Geographic (GCS), Projected (PCS), and Unknown. (Unknown requires only that the units be defined.) The Editable flag must be Yes for this option to take affect, and is overridden internally if the user’s license does not allow modification of projections (e.g. the OM Viewer).

COORDSYS_MODE_ALL

Allow Geographic (GCS), Projected (PCS), and Unknown

gxapi.COORDSYS_MODE_ALL = 0
COORDSYS_MODE_GCS

Allow only Geographic (GCS)

gxapi.COORDSYS_MODE_GCS = 1
COORDSYS_MODE_PCS

Allow only Projected (PCS)

gxapi.COORDSYS_MODE_PCS = 2
COORDSYS_MODE_GCS_PCS

Allow only Geographic (GCS) and Projected (PCS)

gxapi.COORDSYS_MODE_GCS_PCS = 3
COORDSYS_MODE_PCS_UNKNOWN

Allow only Projected (PCS), or Unknown

gxapi.COORDSYS_MODE_PCS_UNKNOWN = 4

DAT_TYPE constants

Type of files (grids, images) to support

DAT_TYPE_GRID

Display only grid formats

gxapi.DAT_TYPE_GRID = 0
DAT_TYPE_IMAGE

Display only image formats

gxapi.DAT_TYPE_IMAGE = 1
DAT_TYPE_GRID_AND_IMAGE

Displays both grids and image formats

gxapi.DAT_TYPE_GRID_AND_IMAGE = 2

FILE_FILTER constants

File filters

FILE_FILTER_ALL

All files *.* ANYWHERE

gxapi.FILE_FILTER_ALL = 1
FILE_FILTER_GDB

Geosoft Database *.gdb LOCAL

gxapi.FILE_FILTER_GDB = 2
FILE_FILTER_GX

Geosoft Executable *.gx GEOSOFT

gxapi.FILE_FILTER_GX = 3
FILE_FILTER_GS

Geosoft Script *.gs BOTH

gxapi.FILE_FILTER_GS = 4
FILE_FILTER_INI

Parameter files *.ini GEOSOFT

gxapi.FILE_FILTER_INI = 5
FILE_FILTER_OMN

Oasis Menu files *.omn GEOSOFT

gxapi.FILE_FILTER_OMN = 6
FILE_FILTER_VU

Oasis View files *.vu LOCAL

gxapi.FILE_FILTER_VU = 7
FILE_FILTER_MAP

Oasis Map files *.map LOCAL

gxapi.FILE_FILTER_MAP = 8
FILE_FILTER_PRJ

Projection file *.prj LOCAL

gxapi.FILE_FILTER_PRJ = 9
FILE_FILTER_CON

Configuration file *.con LOCAL

gxapi.FILE_FILTER_CON = 10
FILE_FILTER_MNU

Sushi MNU files *.mnu GEOSOFT

gxapi.FILE_FILTER_MNU = 11
FILE_FILTER_PDF

PDF files *.pdf GEOSOFT

gxapi.FILE_FILTER_PDF = 12
FILE_FILTER_PLT

Geosoft PLT files *.plt LOCAL

gxapi.FILE_FILTER_PLT = 13
FILE_FILTER_GWS

Geosoft workspace *.gws LOCAL

gxapi.FILE_FILTER_GWS = 14
FILE_FILTER_AGG

Aggregate *.agg LOCAL

gxapi.FILE_FILTER_AGG = 15
FILE_FILTER_TBL

Color table *.tbl GEOSOFT

gxapi.FILE_FILTER_TBL = 16
FILE_FILTER_ZON

Zone *.zon LOCAL

gxapi.FILE_FILTER_ZON = 17
FILE_FILTER_ITR

Image transform *.itr LOCAL

gxapi.FILE_FILTER_ITR = 18
FILE_FILTER_DXF

AutoCAD DXF files *.dxf LOCAL

gxapi.FILE_FILTER_DXF = 19
FILE_FILTER_TIF

TIFF files *.tif LOCAL

gxapi.FILE_FILTER_TIF = 20
FILE_FILTER_EMF

Enhanced Metafies *.emf LOCAL

gxapi.FILE_FILTER_EMF = 21
FILE_FILTER_BMP

Bitmap files *.bmp LOCAL

gxapi.FILE_FILTER_BMP = 22
FILE_FILTER_LUT

ER Mapper LUT *.lut GEOSOFT

gxapi.FILE_FILTER_LUT = 23
FILE_FILTER_PNG

PNG files *.png LOCAL

gxapi.FILE_FILTER_PNG = 24
FILE_FILTER_JPG

JPG files *.jpg LOCAL

gxapi.FILE_FILTER_JPG = 25
FILE_FILTER_PCX

PCX files *.pcx LOCAL

gxapi.FILE_FILTER_PCX = 26
FILE_FILTER_GIF

GIF files *.gif LOCAL

gxapi.FILE_FILTER_GIF = 27
FILE_FILTER_GRD

GRD files *.grd LOCAL

gxapi.FILE_FILTER_GRD = 28
FILE_FILTER_ERS

ERS files *.ers LOCAL

gxapi.FILE_FILTER_ERS = 29
FILE_FILTER_EPS

EPS files *.eps LOCAL

gxapi.FILE_FILTER_EPS = 30
FILE_FILTER_SHP

ArcView Shape files *.shp LOCAL

gxapi.FILE_FILTER_SHP = 31
FILE_FILTER_CGM

CGM files *.cgm LOCAL

gxapi.FILE_FILTER_CGM = 32
FILE_FILTER_TAB

MapInfo Tab files *.tab LOCAL

gxapi.FILE_FILTER_TAB = 33
FILE_FILTER_COMPS

Software Components Components LOCAL

gxapi.FILE_FILTER_COMPS = 34
FILE_FILTER_CSV

MapInfo Tab files *.tab LOCAL

gxapi.FILE_FILTER_CSV = 35
FILE_FILTER_GPF

Geosoft Project *.gpf LOCAL

gxapi.FILE_FILTER_GPF = 36
FILE_FILTER_PLY

Geosoft Polygons *.ply LOCAL

gxapi.FILE_FILTER_PLY = 37
FILE_FILTER_STM

Scatter templates *.stm LOCAL

gxapi.FILE_FILTER_STM = 38
FILE_FILTER_TTM

Triplot templates *.ttm LOCAL

gxapi.FILE_FILTER_TTM = 39
FILE_FILTER_XYZ

Geosoft XYZ files *.xyz LOCAL

gxapi.FILE_FILTER_XYZ = 40
FILE_FILTER_BAR

Geosoft Bar file *.geobar LOCAL

gxapi.FILE_FILTER_BAR = 41
FILE_FILTER_GEOSOFT_LICENSE

Geosoft License files *.geosoft_license LOCAL

gxapi.FILE_FILTER_GEOSOFT_LICENSE = 42
FILE_FILTER_XML

XML files *.xml LOCAL

gxapi.FILE_FILTER_XML = 43
FILE_FILTER_GXNET

GX.NET files *.dll GEOSOFT

gxapi.FILE_FILTER_GXNET = 44
FILE_FILTER_ECW

ECW files *.ecw LOCAL

gxapi.FILE_FILTER_ECW = 45
FILE_FILTER_J2K

J2K JPEG 2000 files *.j2k LOCAL

gxapi.FILE_FILTER_J2K = 46
FILE_FILTER_JP2

JP2 JPEG 2000 files *.jp2 LOCAL

gxapi.FILE_FILTER_JP2 = 47
FILE_FILTER_SEL

acQuire parameters *.sel LOCAL

gxapi.FILE_FILTER_SEL = 48
FILE_FILTER_SVG

SVG file *.svg LOCAL

gxapi.FILE_FILTER_SVG = 49
FILE_FILTER_SVZ

SVG Compressed file *.svz LOCAL

gxapi.FILE_FILTER_SVZ = 50
FILE_FILTER_WRP

Warp file *.wrp LOCAL

gxapi.FILE_FILTER_WRP = 51
FILE_FILTER_MAPPLOT

MAPPLOT file *.con LOCAL

gxapi.FILE_FILTER_MAPPLOT = 52
FILE_FILTER_DTM

Surpac DTM files *.dtm LOCAL

gxapi.FILE_FILTER_DTM = 53
FILE_FILTER_VOXEL

Geosoft Voxel *.geosoft_voxel LOCAL

gxapi.FILE_FILTER_VOXEL = 54
FILE_FILTER_MAPTEMPLATE

Map Template file *.geosoft_maptemplate LOCAL

gxapi.FILE_FILTER_MAPTEMPLATE = 55
FILE_FILTER_ACTION

Action Scripts *.action LOCAL

gxapi.FILE_FILTER_ACTION = 56
FILE_FILTER_DM

Datamine files *.dm LOCAL

gxapi.FILE_FILTER_DM = 57
FILE_FILTER_KML

Google Earth KML *.kml LOCAL

gxapi.FILE_FILTER_KML = 58
FILE_FILTER_KMZ

Google Earth Compressed KML *.kmz LOCAL

gxapi.FILE_FILTER_KMZ = 59
FILE_FILTER_TARGET_PLAN

Target parameter ini file for plans *.inp LOCAL

gxapi.FILE_FILTER_TARGET_PLAN = 60
FILE_FILTER_TARGET_SECTION

Target parameter ini file for sections *.ins LOCAL

gxapi.FILE_FILTER_TARGET_SECTION = 61
FILE_FILTER_TARGET_STRIPLOG

Target parameter ini file for strip logs *.inl LOCAL

gxapi.FILE_FILTER_TARGET_STRIPLOG = 62
FILE_FILTER_TARGET_3D

Target parameter ini file for 3D plots *.in3 LOCAL

gxapi.FILE_FILTER_TARGET_3D = 63
FILE_FILTER_ARGIS_LYR

ArcGIS Layer files *.lyr LOCAL

gxapi.FILE_FILTER_ARGIS_LYR = 64
FILE_FILTER_ARGIS_MXD

ArcGIS Map Document files *.mxd LOCAL

gxapi.FILE_FILTER_ARGIS_MXD = 65
FILE_FILTER_GOCAD_TS

GOCAD TSurf files *.ts LOCAL

gxapi.FILE_FILTER_GOCAD_TS = 66
FILE_FILTER_LST

Geosoft list of items: names, values *.lst LOCAL

gxapi.FILE_FILTER_LST = 67
FILE_FILTER_ECS

GM-SYS external coordinate system *.ecs LOCAL

gxapi.FILE_FILTER_ECS = 68
FILE_FILTER_TARGET_FENCE

Target parameter ini file for fence sections *.ins LOCAL

gxapi.FILE_FILTER_TARGET_FENCE = 69
FILE_FILTER_GMS3D

GM-SYS 3D model *.geosoft_gmsys3d LOCAL

gxapi.FILE_FILTER_GMS3D = 70
FILE_FILTER_BT2

GEMCOM BT2 *.bt2 LOCAL

gxapi.FILE_FILTER_BT2 = 71
FILE_FILTER_BPR

GEMCOM BPR *.bpr LOCAL

gxapi.FILE_FILTER_BPR = 72
FILE_FILTER_BPR2

GEMCOM BPR2 *.bpr2 LOCAL

gxapi.FILE_FILTER_BPR2 = 73
FILE_FILTER_XLS

Excel 97-2003 workbook *.xls LOCAL

gxapi.FILE_FILTER_XLS = 74
FILE_FILTER_XLSX

Excel 2007 workbook *.xlsx LOCAL

gxapi.FILE_FILTER_XLSX = 75
FILE_FILTER_MDB

Access 97-2003 *.mdb LOCAL

gxapi.FILE_FILTER_MDB = 76
FILE_FILTER_ACCDB

Access 2007 *.accdb LOCAL

gxapi.FILE_FILTER_ACCDB = 77
FILE_FILTER_INTERSECTION_TBL

Levelling intersection *.tbl LOCAL

gxapi.FILE_FILTER_INTERSECTION_TBL = 78
FILE_FILTER_UBC_CON

UBC DCIP2D Conductivity model files *.con LOCAL

gxapi.FILE_FILTER_UBC_CON = 79
FILE_FILTER_UBC_CHG

UBC DCIP2D Chargeability model files *.chg LOCAL

gxapi.FILE_FILTER_UBC_CHG = 80
FILE_FILTER_UBC_MSH

UBC DCIP2D Mesh files *.msh LOCAL

gxapi.FILE_FILTER_UBC_MSH = 81
FILE_FILTER_UBC_MSH_DAT

UBC DCIP2D Mesh files *.dat LOCAL

gxapi.FILE_FILTER_UBC_MSH_DAT = 82
FILE_FILTER_UBC_TOPO_DAT

UBC DCIP2D Topo files *.dat LOCAL

gxapi.FILE_FILTER_UBC_TOPO_DAT = 83
FILE_FILTER_UBC_TOPO_XYZ

UBC DCIP2D Topo files *.xyz LOCAL

gxapi.FILE_FILTER_UBC_TOPO_XYZ = 84
FILE_FILTER_XYZ_TEMPLATE_I0

XYZ Import Templates *.i0 LOCAL

gxapi.FILE_FILTER_XYZ_TEMPLATE_I0 = 85
FILE_FILTER_PICO_TEMPLATE_I1

Picodas Import Templates *.i1 LOCAL

gxapi.FILE_FILTER_PICO_TEMPLATE_I1 = 86
FILE_FILTER_BB_TEMPLATE_I2

Block Binary Import Templates *.i2 LOCAL

gxapi.FILE_FILTER_BB_TEMPLATE_I2 = 87
FILE_FILTER_ASCII_TEMPLATE_I3

ASCII Import Templates *.i3 LOCAL

gxapi.FILE_FILTER_ASCII_TEMPLATE_I3 = 88
FILE_FILTER_ODBC_TEMPLATE_I4

ODBC Import Templates *.i4 LOCAL

gxapi.FILE_FILTER_ODBC_TEMPLATE_I4 = 89
FILE_FILTER_EXP

Math expression files *.exp LOCAL

gxapi.FILE_FILTER_EXP = 90
FILE_FILTER_SEGY

SEG-Y files *.sgy LOCAL

gxapi.FILE_FILTER_SEGY = 91
FILE_FILTER_DAARC500

DAARC500 files xYYMMDD LOCAL

gxapi.FILE_FILTER_DAARC500 = 92
FILE_FILTER_TXT

Text files *.txt LOCAL

gxapi.FILE_FILTER_TXT = 93
FILE_FILTER_VOXEL_INVERSION

Voxi *.geosoft_voxi LOCAL

gxapi.FILE_FILTER_VOXEL_INVERSION = 94
FILE_FILTER_GMS

GM-SYS Profile model file *.gms LOCAL

gxapi.FILE_FILTER_GMS = 95
FILE_FILTER_FLT3D

Geosoft 3D filter files *.flt3d LOCAL

gxapi.FILE_FILTER_FLT3D = 96
FILE_FILTER_RESOURCE_PACK

Geosoft Resource Update Packages *.geosoft_resource_pack LOCAL

gxapi.FILE_FILTER_RESOURCE_PACK = 97
FILE_FILTER_GEOSTRING

Geostring files *.geosoft_string LOCAL

gxapi.FILE_FILTER_GEOSTRING = 98
FILE_FILTER_GEOSURFACE

Geosurface files *.geosoft_surface LOCAL

gxapi.FILE_FILTER_GEOSURFACE = 99
FILE_FILTER_GEOSOFT3DV

Geosoft GX3DV *.geosoft_3dv LOCAL

gxapi.FILE_FILTER_GEOSOFT3DV = 100
FILE_FILTER_VECTORVOXEL

Geosoft Vector Voxel *.geosoft_vectorvoxel LOCAL

gxapi.FILE_FILTER_VECTORVOXEL = 101
FILE_FILTER_FLT

Geosoft Filters *.flt LOCAL

gxapi.FILE_FILTER_FLT = 102
FILE_FILTER_XYZ_TEMPLATE_O0

XYZ Export Templates *.o0 LOCAL

gxapi.FILE_FILTER_XYZ_TEMPLATE_O0 = 103
FILE_FILTER_GMS2D

GM-SYS Profile model *.geosoft_gmsys2d LOCAL

gxapi.FILE_FILTER_GMS2D = 104
FILE_FILTER_IP_DATABASE_TEMPLATE

GXIP Database Template *.geosoft_ipdatabasetemplate LOCAL

gxapi.FILE_FILTER_IP_DATABASE_TEMPLATE = 105
FILE_FILTER_GEOSOFT_RESOURCE_MODULE

Geosoft Resource Module *.geosoft_resources LOCAL

gxapi.FILE_FILTER_GEOSOFT_RESOURCE_MODULE = 106
FILE_FILTER_VT

Shell VT files *.vt LOCAL

gxapi.FILE_FILTER_VT = 107
FILE_FILTER_INT

Shell INT files *.int LOCAL

gxapi.FILE_FILTER_INT = 108
FILE_FILTER_SGT

Shell SGT files *.sgt LOCAL

gxapi.FILE_FILTER_SGT = 109
FILE_FILTER_IMGVIEW

Image Viewer files *.imgview LOCAL

gxapi.FILE_FILTER_IMGVIEW = 110
FILE_FILTER_ZIP

Zip files *.zip LOCAL

gxapi.FILE_FILTER_ZIP = 111
FILE_FILTER_GPS_TABLE

GPS Table *.tbl GEOSOFT

gxapi.FILE_FILTER_GPS_TABLE = 112
FILE_FILTER_VULCAN_TRIANGULATION

Maptek Vulcan trianguilation file *.tbl LOCAL

gxapi.FILE_FILTER_VULCAN_TRIANGULATION = 113
FILE_FILTER_VULCAN_BLOCK_MODEL

Maptek Vulcan block model file *.bmf LOCAL

gxapi.FILE_FILTER_VULCAN_BLOCK_MODEL = 114
FILE_FILTER_PRJVIEW

Layout files *.prjview LOCAL

gxapi.FILE_FILTER_PRJVIEW = 115
FILE_FILTER_LEAPFROG_MODEL

Leapfrog model files *.lfm LOCAL

gxapi.FILE_FILTER_LEAPFROG_MODEL = 116
FILE_FILTER_IOGAS

Reflex ioGAS files *.gas LOCAL

gxapi.FILE_FILTER_IOGAS = 117
FILE_FILTER_ASEG_ESF

ASEG ESF file *.esf LOCAL

gxapi.FILE_FILTER_ASEG_ESF = 118
FILE_FILTER_LACOSTE_DAT

Micro-g LaCoste MGS-6 gravity files *.:class:DAT LOCAL

gxapi.FILE_FILTER_LACOSTE_DAT = 119
FILE_FILTER_VAR

Geosoft variogram file *.var LOCAL

gxapi.FILE_FILTER_VAR = 120
FILE_FILTER_P190

UKOOA data exchange file *.p190 LOCAL

gxapi.FILE_FILTER_P190 = 121
FILE_FILTER_UBC_OBS_DAT

UBC observation files *.dat LOCAL

gxapi.FILE_FILTER_UBC_OBS_DAT = 122
FILE_FILTER_UBC_LOC

UBC location files *.loc LOCAL

gxapi.FILE_FILTER_UBC_LOC = 123
FILE_FILTER_UBC_MOD

UBC model files *.mod LOCAL

gxapi.FILE_FILTER_UBC_MOD = 124
FILE_FILTER_UBC_DEN

UBC density model files *.den LOCAL

gxapi.FILE_FILTER_UBC_DEN = 125
FILE_FILTER_UBC_SUS

UBC susceptibility model files *.sus LOCAL

gxapi.FILE_FILTER_UBC_SUS = 126
FILE_FILTER_GOCAD_VOXET

GOCAD voxet files *.vo LOCAL

gxapi.FILE_FILTER_GOCAD_VOXET = 127

FILE_FORM constants

File Form Defines

FILE_FORM_OPEN

Open a file

gxapi.FILE_FORM_OPEN = 0
FILE_FORM_SAVE

Save a file

gxapi.FILE_FORM_SAVE = 1

GS_DIRECTORY constants

Geosoft predefined directory

GS_DIRECTORY_NONE

None

gxapi.GS_DIRECTORY_NONE = 0
GS_DIRECTORY_GEOSOFT

Geosoft

gxapi.GS_DIRECTORY_GEOSOFT = 1
GS_DIRECTORY_BIN

Bin

gxapi.GS_DIRECTORY_BIN = 2
GS_DIRECTORY_GER

Ger

gxapi.GS_DIRECTORY_GER = 3
GS_DIRECTORY_OMN

Omn

gxapi.GS_DIRECTORY_OMN = 4
GS_DIRECTORY_TBL

Tbl

gxapi.GS_DIRECTORY_TBL = 5
GS_DIRECTORY_FONTS

Fonts

gxapi.GS_DIRECTORY_FONTS = 6
GS_DIRECTORY_GX

Gx

gxapi.GS_DIRECTORY_GX = 7
GS_DIRECTORY_GS

Gs

gxapi.GS_DIRECTORY_GS = 8
GS_DIRECTORY_APPS

Apps

gxapi.GS_DIRECTORY_APPS = 9
GS_DIRECTORY_ETC

Etc

gxapi.GS_DIRECTORY_ETC = 10
GS_DIRECTORY_HLP

Hlp

gxapi.GS_DIRECTORY_HLP = 11
GS_DIRECTORY_GXDEV

Gxdev

gxapi.GS_DIRECTORY_GXDEV = 12
GS_DIRECTORY_COMPONENT

Component

gxapi.GS_DIRECTORY_COMPONENT = 13
GS_DIRECTORY_CSV

Csv

gxapi.GS_DIRECTORY_CSV = 14
GS_DIRECTORY_LIC

Lic

gxapi.GS_DIRECTORY_LIC = 15
GS_DIRECTORY_INI

Ini

gxapi.GS_DIRECTORY_INI = 16
GS_DIRECTORY_TEMP

Temp

gxapi.GS_DIRECTORY_TEMP = 17
GS_DIRECTORY_UETC

Uetc

gxapi.GS_DIRECTORY_UETC = 18
GS_DIRECTORY_UMAPTEMPLATE

Umaptemplate

gxapi.GS_DIRECTORY_UMAPTEMPLATE = 19
GS_DIRECTORY_COMPONENT_SCRIPTS

Component scripts

gxapi.GS_DIRECTORY_COMPONENT_SCRIPTS = 50
GS_DIRECTORY_COMPONENT_HTML

Component html

gxapi.GS_DIRECTORY_COMPONENT_HTML = 51
GS_DIRECTORY_IMG

Img

gxapi.GS_DIRECTORY_IMG = 52
GS_DIRECTORY_BAR

Bar

gxapi.GS_DIRECTORY_BAR = 53
GS_DIRECTORY_GXNET

Gxnet

gxapi.GS_DIRECTORY_GXNET = 54
GS_DIRECTORY_MAPTEMPLATE

Maptemplate

gxapi.GS_DIRECTORY_MAPTEMPLATE = 55

IMPCH_TYPE constants

Import Chem defines

IMPCH_TYPE_DATA

Data

gxapi.IMPCH_TYPE_DATA = 0
IMPCH_TYPE_ASSAY

Assay

gxapi.IMPCH_TYPE_ASSAY = 1

WINDOW_STATE constants

Window State Options

WINDOW_RESTORE

Window restore

gxapi.WINDOW_RESTORE = 0
WINDOW_MINIMIZE

Window minimize

gxapi.WINDOW_MINIMIZE = 1
WINDOW_MAXIMIZE

Window maximize

gxapi.WINDOW_MAXIMIZE = 2

XTOOL_ALIGN constants

XTool docking alignment flags

XTOOL_ALIGN_LEFT

Left

gxapi.XTOOL_ALIGN_LEFT = 1
XTOOL_ALIGN_TOP

Top

gxapi.XTOOL_ALIGN_TOP = 2
XTOOL_ALIGN_RIGHT

Right

gxapi.XTOOL_ALIGN_RIGHT = 4
XTOOL_ALIGN_BOTTOM

Bottom

gxapi.XTOOL_ALIGN_BOTTOM = 8
XTOOL_ALIGN_ANY

Any

gxapi.XTOOL_ALIGN_ANY = 15

XTOOL_DOCK constants

XTool default docking state

XTOOL_DOCK_TOP

Top

gxapi.XTOOL_DOCK_TOP = 1
XTOOL_DOCK_LEFT

Left

gxapi.XTOOL_DOCK_LEFT = 2
XTOOL_DOCK_RIGHT

Right

gxapi.XTOOL_DOCK_RIGHT = 3
XTOOL_DOCK_BOTTOM

Bottom

gxapi.XTOOL_DOCK_BOTTOM = 4
XTOOL_DOCK_FLOAT

Float

gxapi.XTOOL_DOCK_FLOAT = 5