Script Repository

The Script Downloader is intended to be used by advanced users. The below is a general guide on how to use each script and what the purpose of each script is. If you find bugs with any of the scripts then please get in touch with Micromine support.

Custom Design Actions

Due to the scripting capability of Micromine Spry, we can create Custom Design Actions (CDAs) that will make a custom button appear on a Custom Actions ribbon. Some or all of the following scripted actions may be available for selection:

 

Advance Direction Setter

This will allow the user to set the advance direction of a solid with a vector tool. The tool can be run over selected solids.

Calculate Area

This script will allow you to write the area of a shape to one of its attributes. Can take multiple inputs and will write multiple outputs.

Calculate Distance

This script will allow you to write the width/length of a shape to one of it's attributes. Can take multiple inputs and will write multiple outputs and uses a vector tool to choose the measuring bearing.

Calculate Line Length

This script will allow you to write the length of a shape to one of it's attributes. Can take multiple inputs and will write multiple outputs.

Chain Dependency

This script will allow the user to click on solids in the animation window to create a new dependency that will link them together. The script will create the dependency in the form of a Range Dependency which can then be edited through all the normal channels.

Field Offset Dependency

Ordinary offset dependencies can only iterate over Levels in a table (i.e. Strip, Block), this script allows the user to choose attributes on shapes and create a dependency that creates an offset based on these attributes.

Double Count Subtract

This script lets you pick an Input layer and an Output layer, define a Grouping Attribute, where things in the same group will not be subtracted from one another, and define a Priority Attribute. The script will then subtract sets of solid from each other.

The intention is for it to cut either the blue or green polygons into sections depending on the Priority Attribute.

Geometric Dependency

This script creates a sphere around a record and creates a dependency between it and every other record that the sphere touches. the script has some nice visualisation tools to see exactly what is being effected and can be used for larger ranges. Has some problems with creating circular dependencies when used over larger areas.

Make Ranges for Level

This script creates table ranges for each individual level on the table.

Outline Shapes

This will create a string as the outline of the selected triangulations or all the triangulations in a layer.

Running the script on this triangulation:

Will produce:

Script Repository (Top)

Design

Attributes From Fields

This script will add attributes that match the structure of a table.

Export Layer to TriDB

This script will allow a layer to be saved to disk as a TriDB file.

Fields From Attributes

This script will add the structure of the attributes to the structure of a table.

Script Repository (Top)

Scheduling

The Scheduling Tools provide different ways for achieving outcomes that are available without them, much more quickly. Some of these tools utilise the ability to use a Scheduling Engine Script under the settings of the scenario, if you need help setting this up after importing the script then please contact Micromine Support. Most of these scripts will probably require some slight coding tweaks to work in a new model.

Blast Horizon Creator

This tool will allow the user to quickly create Ranges to be used as blasting horizons through a right click context menu in the animation.

Equipment Path Cloner

The Equipment Path Cloner will copy the source path from one equipment to another

Indivdual Destination Limit Constraint

This constraint will limit the amount that a single destination task can be filled. It can apply over ranges to let 50% of each record in a dump be used, rather than 50% of the entire dump filling the first 50% of the records completely and none of the remaining 50%.

Highlight Haulage Colours

This script will add an option to the right click menu of any Haulage Network Layer that will colour different areas of the network in different colours. The setting for the colours can be changed by running the script from the scripting panel.

Script Repository (Top)

Scheduling Engine

The Scheduling Engine scripts functionally change how Micromine Spry acts at run time. They will add specific parameters to whether or not a task is available or unavailable that may not be possible without the script. To set up any the scripts you will need to select it as the Scheduling Engine Setup Script under the settings of the scenario. Please get in touch with Micromine support if this is confusing.

Delay After Criteria

A short introductory script to the Scheduling Engine that will create a delay for an equipment after it finishes a task that meets certain criteria. This tool is intended to be used as a base with coding changes required to make it fit for purpose.

Delay After Range Completion

A short introductory script to the Scheduling Engine that will add delays after a certain range of nodes is completed. This tool is intended to be used as a base with coding changes required to make it fit for purpose.

Equipment Path Annotation Script

This script allows many custom actions to be placed into an equipments source path. For example the !waiton X command can be entered in a line to have the line be unable to be completed until X has been completed. For a more comprehensive guide please see: Path Annotation Script

Script Repository (Top)