Professional Documents
Culture Documents
KBID: DMS000391
Datamine Scripts and Macros are provided as-is and are not formally supported by Datamine.
The information and data on this page is provided for you as a starting point to extend your
customization knowledge.
Macro Description
Compatible Products: Studio EM, Studio RM, Studio OP, Studio UG, Studio Survey
Proximity check to find and report drillholes which come within X meters of a planned stope.
Data
Example data is provided for this macro - the attached archive contains the referenced files.
Macro Listing
!START BEGIN
#August 2019 Datamine Corporate Limited
#Description in following prompt
!PROMPT
0 This macro is designed to check for drillholes in proximity to a selected
0 wireframe. It will generate a csv report and a filtered drillhole file,
0 containing the drillholes which may intercept the stope.
0 ---------------------------------------------------------------------------
--
0 Please note that all input files should be located inside your project
file.
0 ---------------------------------------------------------------------------
--
0 Enter your drillhole file.
1 Drillhole input : [_vb_holes] > '$dhole#',a,28
0
0 Enter your stope wireframe name (leave off the tr and pt suffix).
1 Wireframe input : [FakeStope] > '$stope#',a28
0
0 What proximity would you like to be flagged?
1 Danger zone : [10] > '$search#',n
0
0 How fine of a resolution would you like?
1 Resolution : [1] metres > '$resolution#',n
!COMPDH &IN(xx_dh),&OUT(xx_dh2),*BHID(BHID),*FROM(FROM),
*TO(TO),@INTERVAL=1.0,@MAXGAP=0.0,
@MINCOMP=0.5,@START=0.0,@MODE=0.0
!protom &out(xx_fitprot2),@rotmod=0
n
n
$xmin#
$ymin#
$zmin#
$xinc#
$yinc#
$zinc#
$nx#
$ny#
$nz#
!IJKGEN &PROTO(xx_fitprot2),&IN(xx_dh2),&OUT(xx_dhbm),*X(X),*Y(Y),
*Z(Z),@PSMODEL=1.0
!indata &in(xx_estparsv),&out(xx_estparsv)
1,2,$search#,$search#,$search#,0,0,0,3,1,3,1,2
FLAGZ,FLAGZ,1,1,DANGER
!COMPDH &IN(xx_output1),&OUT(xx_output3),*BHID(BHID),*FROM(FROM),
*TO(TO),*ZONE(DANGER),@INTERVAL=9999.0,@MAXGAP=0.0,
@MINCOMP=1.0,@START=0.0,@MODE=0.0
!PICREC &IN(xx_output3),&OUT(xx_output4),@APPEND=0.0
DANGER = 1 END
!EXTRA &IN(xx_output4),&OUT(xx_output5),@APPROX=0.0
WARNING;a20 = "Proximity to stope"
GO
!OUTPUT &IN(xx_output5),*F1(BHID),*F2(FROM),*F3(TO),*F4(WARNING),
@CSV=1.0,@NODD=0.0,@DPLACE=-1.0,@IMPLICIT=0.0
report.csv
!EXTRA &IN(xx_filter),&OUT(xx_filter2),@APPROX=0.0
IF (DANGER !=1) delete()
END
GO
!RESTRI &IN1(xx_output3),&IN2(xx_filter2),&OUT(Danger_Holes),
*KEY1(BHID)
#Cleanup
!LISTDR xx?,&OUT(xx)
!DELETE &IN(xx),@CONFIRM=0.0
!ECHO -----------------------------------------------------------------------
--
!ECHO Finished generating a report file and a filtered drillhole file
!ECHO containing holes which come within $search# metres of $stope#
!ECHO These are named 'report.csv' and 'Danger_Holes'
!END
More information
You can find out more about the processes/commands involved in this customization example using your online Help. Your
Studio Application contains a context-sensitive help file (click the 'stack of books' icon in the top-right corner plus a dedicated
Help file for scripters ("Scripting COM Reference").