Integrate Modelling Macros
Note: This topic relates to Dynamic Modelling.
You can extend your Dynamic Modelling workflow using custom tasks powered by automation macros. This provides access to the full range of automation processes available in your product.
For example, you could use the GETSAMP process to generate a set of sample files from the loaded drillhole data, comparing them to the input equivalents as a data integrity check, or even updating the original inputs. There are hundreds of macro processes and macro commands that can be used to extend your existing workflow.
As another example, you could run STATS to display summary information about your input sample or output structural files, or you could run TONGRAD to analyse grades and tonnages against an estimated resource model, and so on.
See Introduction to Commands and Processes.
Using Macro Variables
As with other workflow tasks, each individual macro block can be run independently, or as part of the overall workflow and can be deactivated and reactivated as you need.
Once a macro has been added to your workflow, the individual macros within it display in the workflow task and can be individually configured using the Macro Properties control bar.
An example of a macro task in the Dynamic Modelling workflow showing macro blocks within it
It can be useful to use substitution variables in a macro. For example, the input file name can be something you want to set interactively, to allow the same macro to be used in a range of modelling scenarios, with each scenario involving a unique input desurveyed drillhole file name.
Add a Macro Task
You can add one or more macro tasks to a workflow. So, if you prefer to keep each macro block in its own file, you can, or you can just add one macro with multiple macro blocks contained (or a combination of the two).
To add a macro task to an existing workflow:
-
Display the Dynamic Modelling Framework framework.
-
Click Add Macros.
A folder browser displays.
-
Locate the macro (.mac) file containing the macros to be run during your workflow and click Open.
A new macro task is added to the workflow. Where multiple macro blocks exist, they display independently in the order listed in the macro file.
-
Adjust macro substitution variable settings, if required, using the Macro Properties control bar.
-
Re-run All tasks, including the macro(s), and troubleshoot any issues that may occur. For more information on macros, see your Macros Tutorial (Help menu).
-
Review macro-generated results.
-
Save your project.
Related topics and activities