GXVULCAN class

class GXVULCAN(handle=0)

GXVULCAN class.

The GXVULCAN class is used for importing Maptek® Vulcan block and triangulation files.

classmethod block_model_to_voxel(block_model_file, ipj, variable_to_export, output_voxel_filename, remove_default_values, rock_code_filename)

Create a Geosoft voxel file from a Vulcan block model file.

Parameters:
  • block_model_file (str) – Block model file
  • ipj (GXIPJ) – Block model projection
  • variable_to_export (str) – Variable to import
  • output_voxel_filename (str) – Ouput voxel filename
  • remove_default_values (bool) – Remove default values from input?
  • rock_code_filename (str) – Rock code file for string variable imports. Optional, unused for numeric variable imports.

New in version 8.4.

License: Geosoft End-User License

classmethod get_block_model_string_variable_values(block_model_file, variable_name, lst)

Query a block model for the values a string variable can assume.

Parameters:
  • block_model_file (str) – Block model file
  • variable_name (str) – Variable name
  • lst (GXLST) – List used to return variable names

New in version 8.4.

License: Geosoft End-User License

classmethod get_block_model_variable_info(block_model_file, query, lst)

Query a block model for the variable names and descriptions.

Parameters:

New in version 8.4.

License: Geosoft End-User License

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 is_valid_block_model_file(block_model_file)

Check if the given file can be opened as a Vulcan block model file.

Parameters:block_model_file (str) – Block model file
Returns:0 - No 1 - Yes
Return type:int

New in version 8.4.

License: Geosoft End-User License

classmethod is_valid_triangulation_file(triangulation_file)

Check if the given file can be opened as a Vulcan triangulation file.

Parameters:triangulation_file (str) – Triangulation file
Returns:0 - No 1 - Yes
Return type:int

New in version 8.4.

License: Geosoft End-User License

classmethod null()

A null (undefined) instance of GXVULCAN

Returns:A null GXVULCAN
Return type:GXVULCAN
classmethod triangulation_to_view(triangulation_file, ipj, mview, new_group_name)

Draw triangle edges in a Vulcan triangulation file to a 3D view in a map.

Parameters:
  • triangulation_file (str) – Triangulation file
  • ipj (GXIPJ) – Triangulation projection
  • mview (GXMVIEW) – Destination GXMVIEW
  • new_group_name (str) – New group name

New in version 8.4.

License: Geosoft End-User License

BLOCK_MODEL_VARIABLE_TYPE constants

Which variables to return from sReadBlockModelVariableInfo

BLOCK_MODEL_NUMERIC_VARIABLE

Return numeric variable names

gxapi.BLOCK_MODEL_NUMERIC_VARIABLE = 1
BLOCK_MODEL_STRING_VARIABLE

Return string variable names

gxapi.BLOCK_MODEL_STRING_VARIABLE = 2