Editing Custom Hole Properties
BlastLogic has introduced the ability to add custom hole properties which can be live edited on the tablet and tracked using OData feeds. To enable this function, the hole property needs to be flagged for tablet use in the Site > Setup > Hole properties tab. As shown in the image below, a purpose needs to be selected to enable tablet editing. To specifically enable tablet editing on charge sheets, the Charge observations purpose needs to be selected.
Once the hole property has been flagged as editable on the tablet via a charge sheet, it can be referenced in a charge rule script like in the example below:
function rule(params, hole {
hole.fill(hole.upper(hole.length*0.5), params.stemming);
var explosiveInterval = hole.unallocated();
hole.fill(explosiveInterval, params.explosive);
var primerCount = hole.properties.nPrimers;
for (var i = 0; i < primerCount; ++i){
var position = explosiveInterval.top + 0.5 + i*explosiveInterval.span/primerCount;
hole.addPrimer(position,[params.det]);
}
}
To summarize the above code, the number of primers in an explosive deck will be set to the custom hole property nPrimers, which has been flagged for tablet use.