GXVULCAN class

class GXVULCAN(handle=0)[source]

GXVULCAN class.

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

__init__(handle=0)[source]

Initialize self. See help(type(self)) for accurate signature.

classmethod block_model_to_voxel(block_model_file, ipj, variable_to_export, output_voxel_filename, remove_default_values, rock_code_filename)[source]

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)[source]

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)[source]

Query a block model for the variable names and descriptions.

Parameters

New in version 8.4.

License: Geosoft End-User License

is_null()[source]

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)[source]

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)[source]

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()[source]

A null (undefined) instance of GXVULCAN

Returns

A null GXVULCAN

Return type

GXVULCAN

classmethod triangulation_to_view(triangulation_file, ipj, mview, new_group_name)[source]

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