MMpy.BlockModel.create_from_template
Syntax
MMpy.BlockModel.create_from_template(output_block_model_path, output_block_model_title, block_model_structure_object)
Description
Create a block model file by using the structure of an existing file.
Parameters
Name |
Type |
Description |
---|---|---|
output_block_model_path |
str | The path of the output block model. |
output_block_model_title |
str | The title written to the header of the output block model. |
block_model_structure_object |
MMpy.FileStruct | The template structure to create a new block model file from. |
Returns
Type |
Description |
---|---|
bool | Returns True if the file was created successfully, otherwise returns False. |
See Also
MMpy.BlockModel.copy()
Notes
This is a static class method.
Examples
blockmodel = MMpy.BlockModel() blockmodel.open('path', 'x_field', 'y_field', 'z_field') out_path = 'OutFile.DAT' out_title = 'OutFileTitle' MMpy.BlockModel.create_from_template(out_path, out_title, blockmodel.structure) blockmodel.close()
Resource ID
IDPH_BM_FROM_TEMPLATE