
Extending Multi-Runs with Python
®
and Standalone Engines
Page 1
Mining Software
24th
Annual
Mintec
Seminar
Extending Multi-Runs with Python®
and Standalone Engines
MineSight
®
is a state-of-the-art, integrated 3-D data modeling and visualization system
that provides great power and exibility for geological modeling and mine designs.
MineSight
®
, through the menu program MineSight
®
Compass™ allows access to the
complete package of MineSight
®
programs for manipulating the project databases of
drillhole, composite, and block models. As powerful as MineSight
®
is, however, it requires
human interaction to produce results.
One of the goals of Mintec, Inc., since the introduction of MineSight
®
, has been to allow
scripting of the graphical aspects of the program. By scripting the creation of 3-D objects
such as current mining surfaces, as-mined surfaces, extracting veried drillhole data, and
the selection of nalized results, such as the ultimate pit surface or pit phase surfaces,
many business processes can be replicated. For example, a model building process that
would incorporate new drilling information into the 3-D block model. Another process
could be created to allow the reporting of End-of-Month results.
An ideal situation would be to allow an audit trail of the model building process to
be completed totally automatically. In order to do this, the MineSight
®
graphical objects
need to be organized and named in a logical manner. This may require the use of the Data
Security System (DSS) to store nal business products such as Original Topo, Geologic
shapes, End-of-Month (EOM) surfaces, Final and Phase pit designs, and incremental or
monthly mining shapes.
A Multi-Run is simply a series of MineSight
®
Compass™ procedures that are executed
either in sequence or in loops. MineSight
®
Compass™ procedures can be standard
MineSight
®
procedures, Australasian MineSight
®
procedures, custom procedures, or
Python scripts. One of the standard MineSight
®
procedures, Runcmd.dat, allows the
execution of any command from MineSight
®
Compass™, Python
®
, Microsoft
®
Windows,
or any executable. This allows use to call outside programs during the execution of a
Multi-Run.
Python is the scripting language used within MineSight
®
. Python
®
can be used to reset
or update the model les in MineSight
®
. Python
®
can also be used to process individual or
multiple objects in a MineSight
®
directory.
The Standalone Engines are the MineSight
®
tools that have been “exposed” to
command line options. Once an engine is exposed, it can be run by passing commands to
it in a command window, a MineSight
®
Compass™ procedure, or a Python
®
script. The
portions of MineSight
®
that have been exposed and are available for your use are located
in the winexe\StandaloneEngines directory or for the Australasian clients, Medexe\
local. Plans are for the Standalone Engines to be moved to the winexe directory in a
future release.
Standalone Engines
There are currently eight programs in the Standalone Engine folder along with the
required DLL les to run them. These programs are: