MMpy.BlockModel.open

Syntax

blockmodel.open(block_model_file_path, x_field_name, y_field_name, z_field_name)

Description

Opens a Micromine block model file (.DAT).

Parameters

Name
Type
Description

block_model_file_path 

str The path of the block model file to open.

x_field_name 

str The field name for the block X coordinate.

y_field_name 

str The field name for the block Y coordinate.

z_field_name 

str The field name for the block Z coordinate.

Returns

Type
Description
bool Returns True if successful, otherwise returns False.

See Also

MMpy.BlockModel.close()

Examples

blockmodel_filename = MMpy.Project.path() + 'Block_Model.DAT'
x_field, y_field, z_field = 'EAST', 'NORTH', 'RL'

blockmodel = MMpy.BlockModel()

if not blockmodel.open(blockmodel_filename, x_field, y_field, z_field):
    raise IOError('Error: problem opening file')

Resource ID

IDPH_BM_OPEN