MMpy.BlockModel.copy

Syntax

MMpy.BlockModel.copy(source_file_path, destination_file_path)

Description

Copy a block model file to a new file.

Parameters

Name
Type
Description

source_file_path 

str The source path of the block model file to copy.

destination_file_path 

str The destination path of the copied block model file.

Returns

Type
Description
bool Returns True if the file copied successfully, otherwise returns False.

See Also

MMpy.BlockModel.create_from_template()

MMpy.File.copy()

Notes

This is a static class method.

Examples

source_file_path = MMpy.Project.path() + 'InBM.DAT'
destination_file_path = MMpy.Project.path() + 'OutBm.DAT'
MMpy.BlockModel.copy(source_file_path, destination_file_path)

Resource ID

IDPH_BM_COPY