Maths Scripts for Reserve Models

Solid models can be modified by performing mathematical operations on them using Evolution's Maths Script tool.

To create and apply a maths script on a block model:

  1. Right-click the model in the project explorer and select the Add maths script folder option. A

  2. Right-click the Maths Scripts folder and add a maths script from the context menu options. A script will be created in the project explorer under the block model. Double click this object to open the Maths Script window in the viewer.
  3. Write a script.

    • Existing properties of the model can be read by typing "solid" followed by a full stop.

    • Existing properties of the model can be modified by typing in the attribute name on the left, followed by an expression on the right.

      existingAttribute = solid.X + solid.Y

    • Temporary attributes which will not be written to the model and only used within the script can be created by wrapping the expression on the right-hand side inside a define function.

      tempAttribute = define(solid.X + solid.Y)

  4. Click Run formula.
  5. Check that the new variable has been calculated correctly by opening the block model in the viewer and checking its properties.

Example script

            

// Excavation costs based on material, and equipment

excavateCO = define(if(solid.MATERIAL="CO",solid.Tonnage_ad * 3.35,0))

excavateTS = define(if(solid.MTW_Bench<>"Bowfield" AND solid.MATERIAL<>"CO", solid.Volume*1.91 ,0))

excavateDL = define(if(solid.MTW_Bench="Bowfield" AND solid.MATERIAL<>"CO", solid.Volume*1.00 ,0))

excavate = define(excavateCO + excavateTS + excavateDL)