MMpy.BlockModel.structure

Syntax

blockmodel.structure

Description

Property to read the structure of a block model file.

Returns

Type
Description
MMpy.FileStruct Returns the structure object of a block model.

See Also

MMpy.File()

MMpy.File.structure

Notes

This is a read only property.

You cannot modify the structure of a block model file due to potential hidden attributes, such as rotation information. If you wish to do this, it must be opened as a MMpy.File instead in which the structure is read/writable. You may lose these hidden attributes however by doing this.

Examples

blockmodel = MMpy.BlockModel()
blockmodel.open(...)

out_path = MMpy.Project.path() + 'Out.DAT'
out_title = 'OutDataTitle'
MMpy.BlockModel.create_from_template(out_path, out_title, blockmodel.structure)

blockmodel.close()

Resource ID

IDPH_BM_STRUCTURE