Autolisp Programs & Visual Basic Programs
Autolisp Programs & Visual Basic Programs
&
Visual Basic Programs
1
Prepared by Guy Lauzier
Copyright - Guy Lauzier
2
Table of Contents
INTRODUCTION........................................................................................................................................................1
INDEX............................................................................................................................................................................2
CONVENTIONS.........................................................................................................................................................13
ACAD...........................................................................................................................................................................13
AH................................................................................................................................................................................14
ALAY...........................................................................................................................................................................14
ALPHA........................................................................................................................................................................15
ARCLEN......................................................................................................................................................................16
BA.................................................................................................................................................................................16
BIT................................................................................................................................................................................17
BLAST.........................................................................................................................................................................19
BLSTLTR....................................................................................................................................................................20
C0..................................................................................................................................................................................25
CDIST..........................................................................................................................................................................25
COLLAR.....................................................................................................................................................................26
CORE...........................................................................................................................................................................31
COPY...........................................................................................................................................................................32
COUPES......................................................................................................................................................................33
CUBICO......................................................................................................................................................................33
DELLAYER................................................................................................................................................................34
DESSIN........................................................................................................................................................................35
EDTEXT......................................................................................................................................................................36
FAULT.........................................................................................................................................................................37
FRZLAY......................................................................................................................................................................39
3
GEOLOG....................................................................................................................................................................39
GRDLINE....................................................................................................................................................................40
GRIDLINE..................................................................................................................................................................41
INPDBF.......................................................................................................................................................................42
LAY..............................................................................................................................................................................46
LAYLIST.....................................................................................................................................................................47
LIMON........................................................................................................................................................................47
PIPE.............................................................................................................................................................................47
OVRBURDEN.............................................................................................................................................................49
PLMAKE.....................................................................................................................................................................49
TOOLS.........................................................................................................................................................................51
PROBE.........................................................................................................................................................................51
SCAN............................................................................................................................................................................53
SECTION SECCION.................................................................................................................................................54
SEEK............................................................................................................................................................................57
SURVEY......................................................................................................................................................................58
SXPLOT......................................................................................................................................................................63
THOLE........................................................................................................................................................................65
TXTATTR...................................................................................................................................................................66
VSE...............................................................................................................................................................................68
VSEF............................................................................................................................................................................68
ZAP..............................................................................................................................................................................68
Entity Codes...................................................................................................................................................................1
4
Introduction
The goal of this book is to assemble as many mining related AUTOLISP tools as
possible in one book in order that the user
May improve his skills more rapidly and be aware of the added features that have
been developed.
2) Detailed summary of the use of the program, the assumptions used and
constraints.
APPROACH
PROGRAMS
1
3
3DPLINE - Program to convert 2D-line or pline information to 3D
polylines.
3DSECT - Program to make 3D sections from 2D plans.
2
A
ACAD - The automatic lisp start-up program
AH - Program to the last entity to a desired layer
and make the selected layer active.
ALAY - Program to change entities from their
present layer to the active layer
ALPHA - Text array generating program
ARCLEN -
ATTREDEF - Redefine a block and its attributes.
B
C
C0 - Program to make the zero layer active and
freeze all the other layers
D
DAM(VB) - Program to do water balance between dams
E
EDTXT - Text editor. (Obsolete – applicable to
versions 12 or less)
F
FAULT - Program to demonstrate the apparent movement
of faulted blocks in plan, section and long
section.
FRZLAY - Function to freeze the selected layer.
L
LAY - Program for selecting a specified layer by
picking one of the entities on the layer.
6
M
P
PCOORD - Places the co-ordinates of a point on the screen.
7
Planner (VB) - Visual Basic suite of programs for mine planning. This
includes ramps designs.
8
SECTION - Group of programs used to make 2D sections
from 2D survey plans.
SEEK - Generalised text searching program.
T
TABCFG - Program to reconfigure the tablet after the
TABLET CFG zero menu has been selected.
TRANS -
TRANSFER -
V
VSE-Program to make 3dpolylines for transfer from AutoCad to
Examine3d format. Program found in PLMAKE.LSP
W
WEDG - Program to plot a hemisphere for the evaluation of block
wedge analysis.
10
X
XTRACT - function to extract text from a
drawing bound by a pline and place it in a file
Z
ZAP - Generalised deletion program by colour,
layer and entity type.
11
HOW TO STRUCTURE DRAWINGS
One of the greatest advantages to using CAD type programs is it's ability to
reproduce at various scales the drawings that are created by a user. One of CAD's
greatest weaknesses is that it in no way restricts the user in the way he/she
organises the data. All too commonly, one user will develop a variety of layers
that bear no meaning to the type of entity that is found on it. The user must
develop a strategy so that other users, either at site or elsewhere, can quickly
decipher what the layer means. The following is a general outline that can be
used in most mines that uses CAD type systems:
12
The drawings for surveying should be named after the
elevation. Keep the elevations on a 5m increment so
that it reduces the number of drawings and it is easy for
anyone to locate the drawing. Whatever surveying was
done on the elevation within the mine is found in the
drawing. The user should not separate the drawings
into sheets, as this increases substantially the number of
drawings, the duplication of entities that must be
updated. Any updates that must be done should be
done by the person responsible and on only one
drawing.
13
Planning - directory PLAN
The planning drawing will usually include the drift, stope
layouts. The drawing names are PP235
2) Insert only the drawings that are necessary when updating and
modifying the drawing and subsequently purge the drawings that
have been inserted as blocks. Blocks have the advantage of being
easy to eliminate. Make sure that an automatic purge is done on the
drawings. Autocad has the tendency of accumulating a lot of extra
14
data that can only be eliminated by purging at the start of the
drawing.
16
CONVENTIONS
The blasthole programs convert metric unit drawings to feet, as it is still more
convenient for the drillers to know how far they have drilled in feet.
Strikes and dips are determined using the right hand rule. The index finger is
parallel to the strike of the plane and the thumb must be directed below the
horizontal plane. The strike of a plane is a horizontal line on a plane where any
movement along the line does not result in a difference of elevation. The dip is
perpendicular to the strike. The strike and the dips are in degrees.
Some programs that write to files normally require that the directory c:\temp be
created. In order to keep the programs simple and avoid numerous windows, the
file names are always the same.
Caution must be used when using snaps for certain programs as AutoCad does
not always react correctly with the programs. In certain cases the program
deactivates the snaps. The programs do not generally reset the values.
ACAD
Purpose:
This is the automatic and default lisp program that is loaded into Autocad when it
is placed in the ACAD or ACADWIN directory. It can be used to insert routines
17
that are used most often. It is also used to establish default settings in the
program. Refer to the listing of the program to understand the use of dormant
functions. The use of dormant functions helps minimise the use of memory as
only called functions are loaded.
How to use:
Automatically loaded into Autocad when the lisp program is placed in the right
directory.
AH
Purpose:
The program is used to correct the layer of the last entered entity that the user
has not put on the right layer. The correct layer is selected and the selected layer
is activated.
How to use:
Type AH
Questions:
Once an entity on the desired layer has been chosen, the last entity’s layer is
changed to the selected layer and the selected layer is activated. If no layer has
been selected a message - No entity selected – is displayed and nothing is done.
18
ALAY
Purpose:
The program is used to change entities from one layer to the active layer. It is
used mainly for fixing up a drawing where several entities have been misplaced
How to use:
Type ALAY
Questions:
Once the selection of the entities has been done the Enter is used to terminate
the command. The entities will be converted to the active layer.
ALPHA
Purpose:
The program is used to generate a text array that is composed of a static prefix
(alphanumeric) and a numeric incremental suffix. It is mainly used to identify
blast rings on plans.
19
How to use:
Type ALPHA
Questions:
2) What is the numeric suffix: This is the starting number of the ring.
It can be any integer value.
3) What is the increment for the suffix: This is the increment integer
value. If no value is entered, then the default increment value is 0.
4) Pick the starting point: This is the starting point on the drawing
from which the text will be placed. The text is centred about the
point.
5) Pick the ending point: This is the ending point limit where text will
appear.
6) What is the text size: This is the text size for the characters that
will be generated. The optimum size for 250 scale drawings is 0.6.
Once all the parameters have been answered, the text array is generated on the
drawing. The text is centred about the starting point and its increments.
20
ARCLEN
Purpose:
The program is measures the arc length of circle or arc. This is mainly used in
construction or in ramp design where one does not want to manually calculate
the angles and the radius.
How to use:
Type ARCLEN
Questions:
The resultant from the function is the measurement of the arc length.
BA
Purpose:
21
Program to scroll up through the the Layer table in order to freeze the active
layer and to scroll up through the Layer Table and active the layer
How to Use:
Type BA
BIT
Purpose:
This program is used to analyse the impact location of the button bits on a rock
face based on the bit face configuration, the bit rotation speed and hammer
frequency. The bit face configuration is the spatial distribution of the carbide
button on a percussion bit face. This program plots the impact points in order to
analyse visually whether the combination of buttons, rotation and frequency
adversely affects the wear of the carbide buttons.
The program displays the impact points as seen from the drill. That is the
rotation is counter-clockwise. The rock would see the impact in a clockwise
direction.
How to use:
Type BIT
Questions:
Update Continue
22
The update option is used when a new bit face
configuration is entered for trial. This is also used after
the program is loaded and the initial bit must be
entered.
Update
How many buttons are on the face:
This is the number of seconds that the bit face will be rotated
in simulated time. Typically 0.5 seconds is sufficient to display
the impact pattern without cluttering the meaningful
information.
BLAST
Purpose:
24
This program is a tool for the blasthole planner. The planner prepares the blast
layouts and uses the program to find the length of the holes, the offset and the
dip.
Once the holes have been entered, it is possible to find the surface area of the
blast pattern and the total drilled length. This program serves to reduce the
amount of mechanical work the planner has to do.
It is important when the drawings are produced, that the horizontal reference line
be as long as possible in order that the precision of the "offset" be accurate.
It is necessary to TABLET before using this function in order to have the proper
scale.
How to use:
Type BLAST
Questions
The program will start by asking the extremities of the frame and the centre of
the pivot within that frame. Before using this function make sure that the
digitizer is calibrated.
Once the initialisation has been done it does not have to be redone except if you
wish to recalibrate. Typing (SETQ CALIBRE NIL) on the command line does this.
LINES: This serves to identify the holes. The information required is the
start of the hole and the end of the hole. It is preferable to always be
25
sequential and follow the nomenclature of the original plan. If
"Enter" is the first command entered after this option, then the
command will be terminated. It is possible to return into this
command and enter other holes as long as the sheet has not been
moved. If the sheet has been moved, then "NEW" must be used
again and this will eliminate all the visible work on the screen.
There are two types of surfaces that the program can handle. These
are "open surfaces" or "closed surfaces". An open surface is one that
does not completely enclose around the drill drift. A closed surface
completely incorporates the drill drift within its area.
After the calculations are done, a PLINE will indicate the area
calculated. The program at this point of development does not allow
for any corrections. All corrections must be done manually.
This program comprises of a suite of blast related subroutines that may be used
as tools to make blast layouts. Included in this package are:
Trou : select the entity and print the text on the screen.
Coupes : program to make sections from lines and text
Dessin : program to draw the information generated from Coupes
Surface : program to calculate total length and surface area from the holes
selected in trou.
Nvtr : program to select the starter hole for designing blast patterns.
Ptr : program to generate the holes with the appropriate selected burden.
26
BLSTLTR
Purpose:
This program is used to generate a blasting letter for long holes. Hole
information is entered from the blasthole section and the program cumulates the
data and prepares a report.
How to use:
Type BLSTLTR
Questions
Options: Newblast RIng Delete Print Save Recover End
27
Ring Option: Hole Delete Explosive Finish Regen
Surf_delay
Print This option is used to print out the report to the printer.
30
Do you wish to double prime the blast? (Yes No):
For some blasts all the accessories have to be
double as a backup. The double prime will double
the quantity of surface and down the hole delays
by two.
31
previous files. The program does not verify if the
file exists.
C0
Purpose:
How to use:
Type C0 (C – Zero). This will automatically hide all the layers except Layer zero.
Layer 0 will become the active layer. This program is included in Blast.lsp.
CDIST
Purpose:
32
This function is identical to DIST in Autocad but cumulates the distance at each
point selected or entity.
How to use:
Type CDIST
COLLAR
Purpose:
The program uses plan and section information from a blasthole grid system to
determine the co-ordinates of blasthole collars. The plan view in conjunction
with the sections determines the 3-D co-ordinates of the collar. The start and
end of the holes coupled with the dump of the holes determines the azimuth and
dip of the holes. The information derived from the plans and sections is stored in
a file for use by another program or for printing.
How to use:
Type Collar
33
The plan that is used to determine the reference line must have been
tableted so as to get the proper scale and co-ordinate location. The
scale of the plan and the sections need not be the same but the
TABLET command of Autocad must be used to readjust the scales.
Refline
Refline is used to define the reference line for the blasthole grid
system. The grid system can have any orientation in plan view. The
reference line can be a New one or a Recalled reference line that has
previously been stored. Every time a new reference line is created, it
is stored in a file COLLAR.LST. Recall is used to recover the reference
line information.
When a New reference line is chosen the points that define the grid
system is requested.
Questions:
34
What is the line number: This is the number of the line. This
must be a numeric integer.
Please enter stope name: This is the name of the stope. The
name must be a maximum of 8 characters. The stope name is
also used as the filename. The file name will have the
extension. DAT.All co-ordinates calculated for the stope will
be appended to the file. The user has the responsibility to
erase the file once the data is no longer useful. The file is a
text file that is easy to edit using any standard text editor.
Please enter ref. line: This is the name of the reference line. A
stope may have several different reference lines. The
reference line name is usually alphabetic and short. The
addition of numbers leads to confusion, as the line numbers
are numeric. An example of a line number / reference line
combination is G7. Note that the reference line name is case
sensitive.
When Recall is used to recover a reference line form the file COLLAR.LST
the following information is requested:
Questions:
Please enter ref. line name: This is the name of the reference
line for the stope. Note that the reference line name is case
sensitive.
Sectline
Calib
Questions:
What is the line number: This is the numerical line number.
The number need not be within the limits of those specified in
Refline.
Holes
36
This section is used for the determination of the collar
locations. To terminate this section of the program press
Enter on the first question shown below.
Questions:
Point to the collar of the hole: This is the point at which the
drift and the hole meet.
Point to the end of the hole for dip: This is the end point of the
hole. It is used to determine the dip of the hole in section.
The hole collar location is then displayed as well as the dip and
azimuth relative to the true mine grid. The information is also stored
in a file for used by another program or for printing. There is no
error correction routine in this program. All correction or deletion of
information can be easily handled through a text editor.
View
This section is used to accommodate for different observer views.
The following questions will determine how the co-ordinates will be
calculated:
Questions:
What is the elevation of the pivot: The elevation reference line that is
common on all sections. It is used to get the proper elevation of the
collar. By default the view is EAST and the elevation is 0.0.
Category:
This is the type of hole. Typically blastholes are BH. Only two
characters are permitted for the category. The program will accept
more but the additional characters are not stored. All lowercase
characters are converted to uppercase.
Region:
This is the region. It is used to further detail the hole location and is
used by the "LYNX" system.
When entering into Sectline for the first time in a session, the "View" option
should be selected before the Holes option. If this is not done the
elevation, co-ordinates and orientations may not be correct.
End
This option is used to terminate normally from the Sectline option.
Notes:
All lowercase alphabetic characters are converted to uppercase when they are
stored in the file for data transfer to the FoxPro program.
The program upon writing to the file that is specified by the stope name
automatically generates a borehole number that must be unique for the LYNX
system. It is therefore important that the user follows the guidelines in entering
38
the information and that the initial blasthole design take these constraints into
account. Otherwise, duplicate blasthole names will be created and the validity of
the database will be questionable.
2) The first two characters are numbers representing the level. The second and
the third digits of the level are used. Examples are:
5060 ===> 06
5015 ===> 01
4960 ===> 96
4950 ===> 95
4940 ===> 94
4900 ===> 90
4885 ===> 88
4870 ===> 87
It is important that the naming of the stope be proper as the second and third
digit of the stope name are used to generate the first two number of the borehole
name. Examples are : 5060-170, 506170P4, etc.
3) The third character should be a letter and represents the reference line name.
The reference line name is one character and can be any alphabetic character A.Z.
Lowercase is automatically converted to uppercase. If no reference line is
entered, then the default letter is R.
4) The next two digits are the reference line numbers. These are an integer
ranging from 00 to 99. No alphabetic characters are permitted.
39
5) The next character is the hole number prefix. The prefix is alphabetic and can
be from A.Z. All lowercase characters are converted to uppercase. If no prefix is
included, then the default letter is H.
6) The next two characters are alphanumeric. Hole numbers do not have to be
numeric. All lowercase alphabetic characters are converted to uppercase. Holes
names such as A2 is converted to A02, 2 is converted to H02.
CORE
Purpose:
The program may be used to evaluate the relationship between holes of various
dips and azimuths to determine if they have the same loci of strikes and dips. As
the technique to determine the strikes and dips is an iterative one, small circles
are used to represent the strike/dips that the program has determined.
How to use:
Type CORE
40
Questions:
3) What is the core angle (decimal degrees). The core angle is the
smallest angle found at the intersection of the fracture plane (or
other feature) and the axis of the core.
The program is easy to use but some experience is required to interpret the
information generated. The relationship between holes is not always evident
especially when there is a variance in the azimuth and dip. The program provides
a rapid visual method of analysing drill holes that do not have to be drilled on the
same azimuth.
COPY
Purpose:
This program is used to copy one file onto another or appended to another file.
41
How to use:
Questions
The / must be used and not the \ in the description of the file. Autocad uses \
for special characters.
COUPES
Purpose:
How to Use:
Type Coupes The program Blast.lsp must have been loaded in order to have this
program available
Questions:
1) Select next point. The user must select a polygon of entities to define
the selected entities.
2) Select starting point. The entity selection is activated. The user must
select the first point in order to define the view direction.
3) Select ending pint. The user must select the ending point in order to
define the vector view direction.
42
The user must define the reference and section lines on the layer LIGNES. Each
of the lines must have unique name. The text closest to the end of a line is
used as a section line name. The survey lines must be on an elevation name
(eg 349) and the text of the Backs and Floors must be on the layer with the
appendix EL (eg. 349EL).
To draw the sections from the files coupes use the program Dessin
CUBICO
Purpose:
This program is used to calculate areas and tonnages. The program asks the user
to define an polygon that is then used to source out the text with the appropriate
prefix “T” for back and “P” for the floor.
How to use:
Type CUBICO
Questions
1) The user must define the area to calculate using the Select Pline
button.
43
2) The program then seeks within the area the text for the back and
the floor (e.g. T234.5 P230.4) and does the averages, the
maximum and the minimum values.
3) The area is calculated from the polygon defined by the lines. The
volume is a resultant of the area by the average height and the
tonnage, volume by tonnage factor.
4) The recalculate button is used when the tonnage factor is
changed or the average height is entered manually.
The results are displayed within the DCL and the recalculate button is when
changes are made manually. The only edit boxes that have effect by changing
manually are the average height and the tonnage factor.
DELLAYER
Purpose:
How to use:
If <E>ntity
2) Choose Entity:
44
Response: Layer : {layer name}
If <L>ayer-name
This program will not eliminate entities that have the specified
layer name but are "trapped" within a succession of blocks. To eliminate the
layers (i.e. for simple entities only) from the drawing save the drawing and then
use the PURGE command upon re-entry into the drawing.
DESSIN
Purpose:
How to use:
Type Dessin
45
No other commands are necessary. The program verifies in the
c:\temp\coupes.asc file to get the information. The information is tab
delimited and the format is as follows:
[Section name] [X0] [Roof elev] [Floor elev] [X1] [Roof elev 2] [Floor elev 2]
EDTEXT
Purpose:
This program serves as a dynamic text editor and bypasses CHANGE or DDEDIT.
It is quick but still has a few flaws. It will work with left-justified text. This
version was developed for version 12 and less. Conflicts with higher versions.
How to use:
46
I) All ASCII characters are permitted
ii) Alt-I may be used to toggle between the
NORMAL mode and the INSERT mode. The
normal mode is identified by the
underscore "_" nested in the text and
the insert mode by the pound "#".
iii) The mouse may be used to displace the
cursor rapidly.
iv) The cursor keys may be used to displace
the cursor. Use PgUp or PgDn to
accelerate the movement of the cursor.
v) Backspace key may be used to eliminate
characters to the left of the cursor.
vi) Del is used to delete on character to
the right of the cursor.
vii) Enter is used to terminate the function.
FAULT
Purpose:
The purpose of this program is to visually see the apparent movements of fault
blocks in plan, section and longitudinal.
The program assumes that there is a marker bed within the original block and
that it is being displaced. This program is a tool to evaluate what one should
expect to find at another elevation, section or longitude given that one view has
been defined. The defined fault plane is the assumed slip plane.
Vein : i) width
47
ii) Azimuth
iii) Dip
Fault: i) azimuth
ii) Dip
a) Section
b) Longitude
c) Elevation
How to use:
Type FAULT
48
Questions
49
Perspective : With this selection it is
possible to define co-ordinates that are relative to
the mine workings. The mid point of intersection
between the fault and the vein is considered the
origin.
FRZLAY
Purpose:
The purpose of the program is to freeze a layer that has been "picked". If the
layer that is to be frozen is the "current" one, then layer 0 will become the
"current" layer. This function is normally put in the menu as it is used often.
How to use:
50
Type FRZLAY or use the menu
GEOLOG
Purpose:
How to Use:
The program uses a Dialog Box. There are still a few bugs to fix but generally
works well. TO BE CONTINUED
GRDLINE
Purpose:
Program to draw gridlines in 2D. The program asks for the corners of the frame
and the title block, the scale of the drawing. The program draws the lines and the
co-ordinates of the view.
How to use:
Type GRDLINE
51
Questions: 1) BOTTOM LEFT HAND CORNER: This is the bottom left
hand corner of the frame.
The resultant of the program is the drawing of the co-ordinates lines and
numbers in the X and Y direction. The lines are drawn within the specified frame
avoiding the title block.
52
GRIDLINE
Purpose:
Program to draw gridlines in 3D. The program asks for the corners of the frame
and the title block, the scale of the drawing. The program draws the lines and the
co-ordinates of the view. The GRIDLINE program resembles GRDLINE but is a
generalised grid program. Using the UCS to determine the view in any direction,
the program will generate in the current UCS the gridlines in the X Y Z direction.
How to use:
Type GRIDLINE
53
8)"Do you wish to insert the North arrow? YES, NO.=> The
question is used to insert the North Arrow on the drawing.
The program generates the grid lines in a projected plane of the present view.
The program to determine which lines will be drawn within the frame uses the
UCS origin UCS X direction and UCS Y direction.
GROUPTOBLOCK
Purpose:
How to use:
Type GROUPTOBLOCK
INPDBF
54
Purpose:
INPDBF is a group of programs that can be used to plot sections, geochem and
infrastructure plots from a text file. A structure file is used to define the
variables, constraints and conditions for plotting. The program plots in “true” 3D
the information. The text is displayed in the UCS that has been chosen to plot
the data.
How to use:
Type Inpdbf
Structure file
The structure file determine relationships between the database and how the
program will actually treat the data. A pseudo interpreter has been incorporated
55
into the program to give the user the flexibility to determine the final
presentation.
VAR_DEF
POZO ESTE NORTE COTA AZIMUT INCLIN LARGO DESDE
HASTA Inter Zn Au Fe Codigo EOL
CNTRL
TAGOFFSET 1.0 -3.0
LINEWIDTH 2.0
NOTICK
END_CNTRL
FILTER
Zn > 0.1
END_FILTER
ASSOC
ESTE WITH X
NORTE WITH Y
COTA WITH Z
POZO WITH HOLE
AZIMUT WITH AZIMUTH
INCLIN WITH DIP
DESDE WITH FROM
HASTA WITH TO
Codigo WITH UNIT
0 UNIT COLOR MAGENTA
1 UNIT COLOR GREEN
2 UNIT COLOR CYAN
56
3 UNIT COLOR ORANGE
4 UNIT COLOR ORANGE
5 UNIT COLOR ORANGE
6 UNIT COLOR CYAN
7 UNIT COLOR YELLOW
8 UNIT COLOR RED
8 UNIT COLOR BROWN WHEN Fe > 6.0 AND Zn < 4.0
9 UNIT COLOR BLUE
10 UNIT COLOR GREEN
11 UNIT COLOR PURPLE
;Zn WHEN Zn > 0.0 SIZE 0.3 COLOR WHITE
Zn WHEN Zn > 0.0 SIZE 0.3 COLOR WHITE
Zn WHEN Zn > 5.0 SIZE 0.3 COLOR GREEN
Zn WHEN Zn > 9.0 SIZE 0.3 COLOR RED
END_ASSOC
TASK
;PLOT SECTION ORIGIN x y z DEPTH m LOOKING azimuth dump VARS
[WGHTAVG] Cu Ag
;azimuth and dump are from the viewing direction
PLOT SECTION ORIGIN 266800 5007400 0 DEPTH 25.0 LOOKING 45 0 VARS Zn
Fe
END_TASK
57
TAGOFFSET determines where the tag will be displayed relative to the
end of the hole. LINEWIDTH is the width of the borehole trace.
NOTICK will disable the display of the tick marks indicating
separation of the lithologies on the borehole trace.
3) FILTER END_FILTER This section is used to filter out data from being
plotted.
4) ASSOC END_ASSOC This section is used to associate the database
found in the data file with keywords that are used by the program to
give the user the final product desired.
The types of associations are: I) variable association that links the user
defined variables such as X Y Z. The critical minimal data associate
that is required for the program to plot is: a)ESTE WITH X, b) NORTE
WITH Y, c) COTA WITH Z, d)POZO WITH HOLE, e) AZIMUT WITH
AZIMUTH, f) INCLIN WITH DIP, g)DESDE WITH FROM h)HASTA WITH
TO. The WITH keyword is used to determine a variable association.
Typically the problems encountered with the program will originate in the
structure file.
Comments in the data file or structure file must begin with a “;”in the first
column of the line in which they are encountered.
Elevation Z
Projection Viewer
Plane
Northing Y
Dip
Azimuth
Easting X
59
LAY
Purpose:
This program identifies the layer on which the chosen entity is located and makes
that layer the "current" one. This program is typically in the menu as it is used
frequently.
How to use:
Type LAY
LAYLIST
Purpose:
This program displays on the command line the layer of the entity selected. This
command reduces the amount of information displayed on the screen and is
typically a substitute for the LIST command in AUTOCAD. This command is
typically found in the menu as it is frequently used.
How to use:
Type LAYLIST
60
Limon
Purpose:
This program is a suite of subroutines that are used to generate 3-D surfaces
and calculate surfaces and volumes in 3-D. This program was developped as
an inexpensive way of calculating volumes and surfaces but requires some
instruction.
How to use:
PIPE
Purpose:
The program is used to make wrap around templates for lateral Y intersecting
pipes and joining pipes. The program is divided into two subprograms:
The program makes an unwrapped 2D template that can then be cut out and
wrapped around a pipe so that the pipe fitter does not have to waste time doing
cutting and fitting of the two pipe. The program only does half of the 180
degrees of the template. If a complete template is required, then a mirrored
image of the half that appears on the screen can be done.
61
The shape that appears on the screen to the right for the lateral Y subprogram is
the hole in the larger pipe and the shape above is the wrap around on the smaller
pipe. The diameter of the larger pipe must always be larger or equal to the size
of the smaller pipe.
How to use
Type LATERAL
Questions:
The shapes that appear on the screen are formed from line
segments. The incrementation process in the program is in degrees
and the precision of the shape is left to the user. An optimal
increment has been found to be 5 degrees.
Type JOIN
Questions:
62
3) The increment in degrees of the segments:
The shapes that appear on the screen are formed from line
segments. The incrementation process in the program is in degrees
and the precision of the shape is left to the user. An optimal
increment has been found to be 5 degrees.
OVRBURDEN
Purpose:
How to use:
Type SECPLAN
63
tag is put in the drawing. The program always returns to 3)
until CTRL-C is used to end the program.
PLMAKE
Purpose:
This grouping of programs is used to convert lines into 3-D polylines, polyline
merging, line compression and exporting to Gemcom format for making solids.
f) Ok – does nothing
64
h) VSE – Makes vertical sections for Examine3d
How to use:
Type PLMAKE
TOOLS
Purpose:
65
How to use:
Type RECT
PROBE
Purpose:
The purpose of this program is to search through a drawing database for entities
that have a specified layer name. It is often necessary to clean up a drawing of
some unwanted layers by PURGING the drawing. However, some layers cannot be
purged because they are trapped in a block or a not easily visible. This program
helps reduce the search time by placing in a file all the entities and their location.
The program searches through all the block (even the nested ones) and output to
the file PROBE.INF a listing of all the entities that meet the layer criteria.
Some layers cannot be purged if they are trapped in the block "definition" which is
not an entity. AUTOCAD keeps the block "definitions" separate from the actual
66
block "entities". As a result even if the "entity" blocks no longer have the layer,
the "definition" will still have it. In order to purge that layer it will be necessary to
redefine the block by reinserting the block in the following fashion (e.g. file is
STATION):
INSERT:
Block name to insert:
STATION=STATION
Insertion point:
CTRL-C
How to use:
Type PROBE
The information in the file has been structured so as to make it easier to find the
information. However, when it comes to block, the insertion points must be
added to actually locate the block or the entity. The general structure of the
ASCII file is as such:
>START
BLOCK 1
:
:
BLOCK n
67
ENTITY
>END
SCAN
Purpose:
Program to seek a drawing for a specific text. This is a lower level program than
SEEK as SCAN only seeks exact text.
How to use:
Type Scan
68
2) If text has been found that matches the
entered text then the text is displayed in the center of the
screen. If not found then the “Not found” display is displayed
on the command line.
3) When text has been found the following key
words are displayed as options: Continue or Terminate Out-
zoom In-zoom: Continue is used to go to the next word that
matches the conditions. Terminate is used to terminate the
function. Out is used to Zoom out or to demagnify the text.
In-zoom is used to zoom into the text to get more detail. If
no text entities are selected then the message: The text
cannot be found ... is displayed.
SECTION Seccion
Purpose:
How to use:
Type SECCION
This command will give a description of the four functions make up the program
and their use.
69
2) SXINPUT Data entry program.
Type SXSTART
Questions
This point must normally be located to the left of the section. This is to
avoid having projections done in a mirror fashion.
Note: All points projected are done so orthogonal to the reference line. If the
starting point of the reference line is not to the left of the ending point, the
projection will be inverted and all points will be projected below the reference
line.
Type SXINPUT
Questions
70
1) SELECT POINT:
2) ELEVATION OF POINT:
This is the elevation of the point. A text elevation may be selected or uses
ENTER to type in a numeric elevation.
3) TYPE OF POINT:
This is a text string that may be entered in front of the elevation that will
be printed at the projected point and may be used to clarify the type of
point that the user has selected. An example would be to use "F" for floor
or "B" for backs.
Type SXREL
Questions
This is the orientation of the rotated reference line with # 1) (above) as the
origin. 0 is considered as east and is positive counterclockwise.
71
This feature may be used to prepare dipping sections that are not at 90
degrees. This has applications in blasting where drill sections are not
always at 90 degrees.
Note: SXSTART must be run before SXREL as some information that has
been generated in SXSTART is required in this function. The RELATIVE
POINT is equivalent to the STARTING POINT but translated.
Type SXPROFIL
Questions
1) POINT 1:
2) ELEVATION 1 LOWER:
3) ELEVATION 1 UPPER:
4) POINT 2:
5) ELEVATION 2 LOWER:
72
6) ELEVATION 2 UPPER:
Note: This functions requires two points from a plan view and four elevations to
determine the floor and roof of the drift. Once all the questions have been
answered a pline will be put on the section based on the reference line.
Type APSECT
Questions
73
The program will generate in relative co-ordinates an unfolded section of the
plan. This is applicable to road construction layouts or ditch profiles.
SEEK
Purpose:
Program to wildcard strings and zoom onto the text in the drawing.
How to use:
Type Seek
Questions:
1) Please specify the string: Enter the text to be found. The?
May be used to define a “wild” character and * for a group
of wild characters that can range from no characters to
multiple characters.
2) If a valid word is found then the text is zoom onto the
center of the screen. Two options are displayed
nOptions: Magnify Next: The Magnify is used to zoom in
or out with the question: Magnification factor please: A
numeric scale factor is required. Under the Next option
the next matching word is displayed.
The function displays all the matching set of text. The string search is case
sensitive. “Search routine complete” is displayed when the end of the valid
words has been displayed.
74
SURVEY
Purpose:
SIDE SHOTS
Purpose:
How to use:
Type Side
Questions:
Enter BS Coors. Enter the co-ordinates of the backsight either
through the keyboard or using a snap function. The drawings
are assumed to be 2-D drawings and the elevation co-ordinate
need not be entered at this stage.
75
Enter HI: This is the height of the instrument.
A loop around the following questions allows for the continuous entry of
shots. Use Ctrl-C or BREAK to terminate the program.
OFFSETS
Purpose:
How to use:
Type Offsets
Questions:
Enter BS Coors. Enter the co-ordinates of the backsight either
through the keyboard or using a snap function. The drawings
76
are assumed to be 2-D drawings and the elevation co-ordinate
need not be entered at this stage.
A loop around the following questions allows for the continuous entry of
shots. Use Ctrl-C or BREAK to terminate the program.
77
Plus offset: This is the offset vertically up from the point.
There is no default value for this offset if the user simply
presses Enter.
A horizontal line is then placed between the left and right offset.
The elevation of the floor and back are also placed on the screen and
centred about the shot point. If both the left and right offset are
zero a circle will be placed instead of a line and the elevation centred
about the circle. If there is no positive offset the back elevation will
not be placed on the screen.
TP
Purpose:
How to use:
Type TP
Questions:
Enter BS Coors. Enter the co-ordinates of the backsight either
through the keyboard or using a snap function. The drawings
78
are assumed to be 2-D drawings and the elevation co-ordinate
need not be entered at this stage.
GrCh
Purpose:
79
This program is used to calculate grade chains
How to use:
Type GRCH
Questions:
Enter Sta. or BLP Coors.: This is the co-ordinates of the station
or back line plug as entered through the keyboard or using the
snap function and pointing to the node of the station.
Enter planned floor Elev. for Sta. or BLP: This is the planned
floor elevation at the station or back line plug.
Enter FLP or Sta. Elev.: This is the elevation of the front line
plug or the station.
Enter % grade (x.x): This is the % rise over run that the travel
way is designed at. A 10% grade is entered 10 and a -10%
grade is -10.
SXPLOT
Purpose:
This program has as purpose to make divided frames. The bottom frame is
normally the plan view and the upper is the section. This program may not work
on all plotters. This program was developed to with the intent to overcome the
AUTOCAD limitations when it came to plotting multiple windows on the same
plan without having to move the section. This program may not work with all
plotters. Some plotters cannot handle two distinct plots on the same plot. With
this program, the user must first plot the plan view and then plot the section view
with the offset or origin is given by the TErminate function of the program. This
program was developped for Autocad version 12 or less.
How to use:
Type SXPLOT
STart Questions :
81
The two types of permissible frames are A3
landscape of A3V portrait.
PLan Questions :
MOve Questions :
SEction Questions :
GRid Questions :
TItles Questions:
TErminate Questions:
83
This command terminates the program normally and
displays the co-ordinates of the origin of the
second plot for the section.
THOLE
Purpose
This program may be used to position test holes (T-Holes) on plan as well as
placing the assay numbers, grades and lengths.
The following layers are created or used for the specified data:
How to use
Type THOLE
Questions:
84
1) STARTING POINT OF HOLE:
4) Number or Grade
TXTATTR
Purpose
85
4) The colour
5) The original text size
How to use
Questions:
The initial menu requests the user to specify whether text size or text attributes
are to be modified. Specify SI for size and ST for style change. For size changes,
the original text size and the new text size are requested. For style changes, the
new style name is requested.
1) Layer name (* for all): This is the layer filter element. All entities on the
specified layer will be changed. * Signifies all layers.
2) Style (* for all): All the text entities that have the specified style would be
chosen for modification. Only one style name may be specified at any one
time.
3) Linetype (* for all): All the text entities that have the specified line type
would be chosen for modification. Only one line type can be specified at
any time.
4) Colour name (* for all): All the text entities that have the specified colour
would be included for modification. Use the numeric value of the colour
instead of the text value.
Once all the filter questions have been answered, a listing of the filter elements
and the selection is displayed. If the choice is incorrect, then the user should
press CTRL-C. Otherwise, the user can press any key to continue and change the
text entities to the requested settings of style or text height.
86
87
VSE
Purpose
The program is used to make sections using survey data lines and text elevations
to generate a 3d polyline that can be used to make wireframes in Examine 3d.
This program is included in PLMAKE.LSP
VSEF
Purpose
This program is used to generate a text file with 3dpolyline data in the ‘geo’
format that is used by the Examine 3d program to generate rings that are then
used to generate wireframes.
ZAP
Purpose
The ZAP program is a quick way to eliminate specific entities from a drawing. The
user must be careful as the deletion of the entities includes those that are not
visible on the screen and those that are frozen.
How to use
Type ZAP
Questions
88
SELECT THE TYPE OF ENTITY TO ELIMINATE:
I) TEXT
ii) CIRCLE
iii) POINT
iv) SOLID
v) LINE
vi) PLINE
═══════════════════════════════════════
══════════════════════════
TEXT
For the TEXT several different deletion options are permitted. The
following prompt will appear when a TEXT entity is selected:
Using the Numbers option, all the text entities starting with a digit will be
eliminated.
Using the Floor_Back option all the text entities beginning with the
letter "B" or "F" for backs and floors and a second character a digit will be
eliminated from the drawing.
Using the All option all the text from the drawing will be eliminated.
89
Using the Layer option a more specific deletion may be achieved. A
second question is presented to the screen:
The option Layer reduces the influence of the deletion process to just
one layer.
Using the option Keepgeo only the geology layers are kept. These are:
STRUCTURE, FAULT, GEOSYMTXT, GEOTEXT, CONTACT, ASSAYS, SAMNUMBER.
The name of the layers is easily changed in the coding and the number of
permissible layers may be adjusted to the user's requirements.
═══════════════════════════════════════
══════════════════════════
CIRCLE
When a circle has been selected as entity the following deletion choices
will appear:
With the Radius option only the circles with the identical radius will be
deleted.
With the Layer option all the circles on the layer of the selected entity will
be deleted.
With the Colour option all circle entities with the colour of the selected
entity will be deleted.
The All option deletes all the circle with the Radius, Layer and Colour of the
selected entity.
90
The End option is used to terminate the loop, as the menu will reappear
until the user has completed his/her selection. This option is to give the
flexibility to the user to select options such as Radius and Layer, Layer and
Colour or Colour and Radius.
═══════════════════════════════════════
══════════════════════════
The selection of a solid, line or pline is handled with the following menu:
With the LAyer option, all the entities of the selected type on the layer on
which the entity was selected will be deleted.
With the LInetype option, all the entities of the selected type with the
linetype of the selected entity will be deleted from the database.
With the COlor option, all the entities of the selected type with the colour of
the selected entity will be deleted.
With the ALl option, all the entities of the selected type will be eliminated
from the drawing.
91
Entity Codes
CODE DATA TYPE DESCRIPTION
51 Pointed Pair Angle between UCS and the X axis of the chosen
entity (radians)
0 Entity name
6 Line type
8 Layer name
10 Point
38 Elevation
39 Thickness
62 Colour