Extending Multi-Runs With Python® and Standalone Engines: Mining Software
Extending Multi-Runs With Python® and Standalone Engines: Mining Software
Extending Multi-Runs With Python® and Standalone Engines: Mining Software
24th
Annual
Mintec
Seminar
Page
Extending Multi-Runs with Python® and Standalone Engines
PCLIP ver 3.34 (MS3D 3.6) Copyright (C) 1996-2006 Mintec Inc.
Notice that the standalone engines are versioned and correspond to the major version of
MineSight®.
Procedures that use the Standalone Engines
Mintec has created procedure for many of the standalone engines. These procedures can 24th
be received from the Technical Support group. The majority of these procedures have been
Annual
used by the Australasian MineSight® users.
Mintec
The procedure names are:
Seminar
Page
Extending Multi-Runs with Python® and Standalone Engines
24th Cell
Annual A one-by-one-by-one location within the Model. This is the smallest
Mintec referenced item.
Seminar
Page
Extending Multi-Runs with Python® and Standalone Engines
m.storeslab()
m.free()
gc.collect()
In the above snippet, the blocks are being tested to see if they are within a boundary 24th
polygon, using the metech_utilities library and if the block is within the boundary, Annual
the items are set to the assigned value, in this case, 1. Mintec
Seminar
Page
Extending Multi-Runs with Python® and Standalone Engines
The above snippet exports the solid.msr as a shell format file and runs Clip.exe.
The -drh option specifies that the data to clip is a drillhole file and the –attr specifies that
the attribute of the solid should be set to the intervals within the solid, while the –drill
specifies the output should be in M205V1 format. In the above example, two attributed
solids with that define the high and low grade ore zones exported as shell files along with
the drillhole intervals exported using M219V1 are used with the Clip program to define
the assay intervals within each solid. Each solid is processed, then the output of the program
is loaded back into the drillhole file using M205V1.
The same shell files can be used to calculate the 3DBM partials using another Standalone
Engine, Voxel. The code snippet below shows how this can be done:
fl.write(‘voxel -shl hi.shl -prt hi.prt -xmin %s -ymin %s -zmin %s -nx %s -ny %s
-nz %s -dx %s -dy %s -dz %s -sb 10 %s\n’ %(mypcf.xmin(),mypcf.ymin(),mypcf.zmin(),
24th mypcf.nx(),mypcf.ny(),mypcf.nz(),mypcf.dx(),mypcf.dy(),mypcf.dz(),nullout))
Annual fl.write(‘voxel -shl low.shl -prt low.prt -xmin %s -ymin %s -zmin
%s -nx %s -ny %s -nz %s -dx %s -dy %s -dz %s -sb 10 %s\n’ %(mypcf.xmin(),mypcf.
Mintec ymin(),mypcf.zmin(), mypcf.nx(),mypcf.ny(),mypcf.nz(),mypcf.dx(),mypcf.dy(),mypcf.
Seminar dz(),nullout))
Page
Extending Multi-Runs with Python® and Standalone Engines
The output is a shell file that can be imported into MineSight® or converted to a .msr
using the shl2msr.exe program.
Using voxel to create partial files
Mintec has created a script named ShlRpt.pyc that uses the Standalone Engine program
voxel.exe. The script can be run from within MineSight® or from a batch file, procedure,
or from the command line. The script can process multiple objects in a MineSight® folder
or multiple elements in a MineSight® object. The script has many options for filtering the
data to be used: by element name, element material, resource material, solids only, and by
Volume. Multiple items can be reported including volume, tonnages, and area. The tonnage
factor is applied to the entire set of solids.
24th
Annual
Mintec
Seminar
Page
Extending Multi-Runs with Python® and Standalone Engines
Mining Software
24th
Annual
Mintec
Seminar
Page