Connector

The Connector control is used to read or initiate connector data and events. The Connector connects Micromine Origin & Beyond to Micromine Geobank and connects various tools or functions within Micromine Geobank. The Data passed by the connector is a project identifier and a drillhole identifier.

Properties

Key properties of Connector include:

  • Name. The custom name for the Connector.
  • Type. The control type (Connector) for the connector. This cannot be modified.

Events

Key events associated with a Connector include:

DrillholeMessageReceived. The name of the script for receiving Drillhole messages from Micromine Origin & Beyond.

Currently the form connector control sends and receives drillhole message. To send a drillhole message, call the "SendDrillholeMessage" function in the control and pass in the project and site:

  • Connector1.SendDrillholeMessage("project1", "site1")

To receive a drillhole message and retrieve the project site data, use the "DrillholeMessageReceived" event and the project site data will be inside `e`:

  • def Connector1_DrillholeMessageReceived(sender, e):

    • project = e.Project

    • site = e.Site

The following is an example of a drillhole messages script.

An example of a drillhole messages script

This script can be triggered with a Button to send a connector message to the configured connection. A ListBox can be added to the form to display the sent and received message results. An example of a configured form is displayed below:

An example of a configured form with a Connector control

Where a Connector control is available in a related Data View and Graphic Report, the data in the grid and elements of the report can be connected. For information on this process, see Connecting with Reports.