Title file

The title file is an ASCII format file, which is used to define the title picture.

All given values are in millimeters unless otherwise stated. The command for position is given by mathematical coordinates (X=horizontal, Y=vertical). Positive coordinates are calculated from the lower left corner of the paper and negative ones from the upper right corner. This system allows same title files to be used with different paper sizes. Parameters in square brackets are optional. If they are not given, default values are used.

The title file is drawn directly from the file. So, when editing it, changes are immediately visible after saving the file.

MAR

Margins (MAR x [y=x])

Lower-left corner as you view the paper.

FRA

Frame size (FRA width height code [linewidth=0])

If FRA = 0 0, the program uses the given paper size reduced by margins. If code is less than equal to 30, it is color index, otherwise it will be used as feature code and the line definitions (color, line type, thickness) are taken from code file (T3 code field).

CLR

Print area (CLR x1 y1 x2 y2 [x3=0 y3=0])

Defines drawing area inside paper area.

For cross section and profile drawings there will be at least 15 mm margin for vertical axis values. If parameters x3 and y3 are defined, these will used instead of parameters x1 and y1 in cross section and profile drawings.

EXC

Exclude area (EXC x1 y1 x2 y2)

Excludes given rectangle from drawing area. Files are not drawn on this area.

ORI

Origin (ORI x y)

All measurements are compared from the origin (default 0,0 = lower-left corner of the paper). You can change the location of the origin.

REC

Rectangle (REC x y width height code [linewidth=0])

The box is drawn to the size given. If you give only two parameters, the bottom corner of the box is taken from the origin and the given parameters are the width and height. If code is less than equal to 30, it is color index, otherwise it will be used as feature code and the line definitions (color, line type, thickness) are taken from code file (T3 code field).

LIN

Line (LIN x1 y1 x2 y2 code [linewidth=0])

Draws line between given points. If you give only x1 and y1, the pen will draw from its current location to the given point. If code is less than equal to 30, it is color index, otherwise it will be used as feature code and the line definitions (color, line type, thickness) are taken from code file (T3 code field).

TEX, TEXL

Text (TEX x y size code text)

Writes text line. If the text begins with ?-mark, the program will ask for the text text. You can use a combination like ?#DATE, which makes to date to be asked for the first time, but then saved as fixed text. Texts can use following form: default //? question. After asking questions, values are stored to title file in this format. This allow later asking of questions again without the original template file.

If text starts with a #-mark, the program will write file macro or point macro value in that location. Macros #X, #Y, #Z, #A and #B are active point coordinates, which can be formatted using normal value format rules (e.g. #Z%.3). #CODE_Tn_xxx outputs code definition. For example: #CODE_T3_121 outputs T3-field explanation for code 121.

Additionally macros #AUTOSYSTEM and #AUTOEPSG are available in title. Both use active point or paper center east coordinate to get current coordinate system automatically. This works with WGS84, TM35, KKJ and GK systems. First macro get coordinate system name and second gets EPSG code.

Macros #INFO1, #INFO2 and #INFO2 retrieve values given in title dialog info fields.

If text starts with character $, the program will find the text from the active point attribute data. For example: $DIA active point DIA attribute or $DATE active point DATE attribute. If text starts with two $ characters, the program will find the text from the active points file (or if no active point exists, the active file) attribute data. For example: $$PROJECT files PROJECT attribute or $$DATE files DATE attribute. If text starts with $#, program tries to find attribute real value from the code file (e.g. $#T3 gets code description or $#MAT gets material name).

If code is less than equal to 30, it is color index, otherwise it will be used as feature code and the font definitions (typeface, size, color, etc.) are taken from code file (Font list).

By default text is aligned to the right side of location. Command TEXL aligns text to the left side of location.

LIST, LIST_UP

List (LIST x y size code format sort [clear=0])

Output a coordinate list using selected points to position x y. LIST_UP-command writes the list upwards.

Size is text size in millimeters and code is text code. Format is line format (e.g. 34XY = T3 T4 X Y) and sort is sort order of selected points (e.g. 4XY or 34). Clear 1 clears background, 2 draws rectange around list and 3 makes both. If code is less than equal to 30, it is color index, otherwise it will be used as feature code and the font definitions (typeface, size, color, etc.) are taken from code file (Font list).

SYM, LTY, PRO, ARE, VOL

Symbol (SYM x y code size [color=0] [text=2.0]), line type (LTY/PRO x y code size [color=0] [text=2.0]) or area (ARE/VOL x y code size [color=0] [text=2.0])

Draws symbol, line type or area paint according the code to position x y. Code is code in the code file, size is symbol size (mm). Color 0 is color from code and colors 1-30 are color from color table. Text is text size (mm)

PRO and VOL find line type or area from T1 surface list. All other use T3 codes. The code can also be comma separated list of codes. Symbols are then drawn below each other using the text size as an interval.

LEG

Map legend (LEG x y points/lines/areas [size=2.0] [color=0] [text=2.0])

Searches used codes from the active file and displays mostly used symbols, linetypes and area hatches. Options points, lines and areas can be used to limit amount of codes. For example, definition 5/5/5 displays five most common symbols, five most common linetypes and five most common area hatches. If SYM, LTY, PRO, ARE or VOL definitions are used in the title file before LEG line, codes already displayed are excluded from legend.

In cross section and profile windows legend displays profile surface line type and volume area hatches from all file list files.

FILE

Text file (FILE x y size code [clear=0] [file])

Draws text file to position x y. Size is font size in millimeters. If code is less than equal to 30, it is color index, otherwise it will be used as feature code and the font definitions (typeface, size, color, etc.) are taken from code file (Font list). Clear 1 clears background, 2 draws rectange around list and 3 makes both. File is file name (can also be given in title dialog).

RUL

Ruler (RUL x1 y1 x2 y2 code [linewidth=0] [size=2.0])

Draws scale ruler. Coordinates x1, y1, x2 and y2 are lower left and upper right corner of the area reserved for the ruler line. Ruler may be shorter than the reserved area, but not longer. If code is less than equal to 30, it is color index, otherwise it will be used as feature code and the line definitions (color, line type, thickness) are taken from code file (T3 code field). Size is text size.

NOR

North arrow (NOR x1 y1 x2 y2 code [linewidth=0] [size=x2-x1])

Draws north arrow. Coordinates x1, y1, x2 and y2 are lower left and upper right corner of the area reserved for the arrow. Usually square. If code is less than equal to 30, it is color index, otherwise it will be used as feature code and the line definitions (color, line type, thickness) are taken from code file (T3 code field). Size is symbol size.

COL

Terrain model coloring legend (COL x1 y1 x2 y2 [textsize=2.0])

Draws box with terrain model colors and ruler with corresponding values.

WEL

Well diagram (WEL x1 y1 x2 y2 code [linewidth=0] [size=2.0] [flag=0])

Kaivoviitteen ominaisuuksien mukaan piirretyt putkien suunnat. Koordinaatit x1, y1, x2 ja y2 ovat diagrammille varatun kuva-alueen vasen alakulma ja oikea yläkulma. Alue voi olla myös suorakaiteen muotoinen. Jos koodi on pienempi tai yhtä suuri kuin 30, tulkitaan se värinumeroksi, muuten se tulkitaan koodiksi ja viivan tyyppi, paksuus ja väri haetaan kooditiedoston T3-kohdasta. Koko on tekstin koko. Flag on toiminto ohjaava asetus. Flag 1 piirtää suhteelliset suunnat, jolloin lähtevä putki osoittaa suoraan ylös. Lähtevä putki piirretään paksummalla viivalla ja saa tekstin "L", tulevat putket numeroidaan juoksevasti myötäpäivään T1-T9 lähtevästä putkesta alkaen.

PIC, BMP

Bitmap logo (BMP x1 y1 x2 y2 file)

Draws raster image logo to the given rectangle. Coordinates x1, y1, x2 and y2 are lower left and upper right corners of the rectangle. File is raster image file name with either full path or relative to title path. If file name starts with $, an attribute of the active point is used as file name. E.g. $PICTURE, where PICTURE is the attribute to have the file name.

PIC scales image to the rectangle retaining its shape. Alternatively, BMP stretches the image to fill whole given area. Image file format can be any common raster file format (BMP, GIF, JPG, PNG, TIF). File name can also be read from the active project settings with the macro #LOGO.

Example:

MAR 3
FRA 0 0
CLR 5 35 -45 -5
ORI -250 0
REC 250 30
LIN   0 30 250 30
LIN   0  0   0 30
LIN  30  0  30 30
LIN  90  0  90 30
LIN 140  0 140 30
LIN 200  0 200 30
TEX 3.0 9.0 12 2 UTIC
TEX 3.3 9.3 12 2 UTIC
TEX  33  25  3 1 Project
TEX  33  10 10 1 ?Project
TEX  93  25  3 1 Customer
TEX  93  18  6 1 ?Customer1
TEX  93  11  6 1 ?Customer2
TEX  93   4  6 1 ?Customer3
TEX 143  22  3 1 Scale
TEX 160  22  8 1 #SCA
TEX 143  12  3 1 Date
TEX 160  12  8 1 #DAT
TEX 143   2  3 1 Number
TEX 160   2  8 1 ?Number
TEX 203  25  3 1 Legend
TEX 203  10 10 1 ?Legend
ORI -40  30
SYM   5   6  123 4.0 1
TEX  10   5  3 1 Symb_123
SYM   5  11  124 4.0 1
TEX  10  10  3 1 Symb_124
SYM   5  16  125 4.0 1
TEX  10  15  3 1 Symb_125
LTY  4  21  141 6.0 0
TEX  10  20  3 1 Ditch edge
LIN   0   0  0 -0.1