To calculate line lengths of the active file sorted be T1-field (owner) and T3-field (feature code). With the Shift-key the field T5 can contain the amount of lines. Default is one. By default horizontal lengths will be calculated. Use special setting LineCalcFlag in Utilities-dialog to get slope lengths XYZ). With the Ctrl-key only selected lines are handled.
This function uses two control files, which are described below. These control files should be saved in settings directory.
The results are stored in a file LINECALC1.TXT located in settings directory. This file will be shown automatically after calculation. The file is rewritten after every calculation.
Control file LINECALC1.DAT (in settings directory) includes user names for the T1-field.
42,Espoo Kipake 50,Espoon vesi 51,Suvisaariston Vesiosuuskunta ,tuntematon
Rivin perään voi antaa kolmantena arvona korvaavan tekstin tulostiedoston ’Omistaja’ sanan paikalle. Annettu arvo on voimassa, kunnes se uudelleen muutetaan.
Control file LINECALC1.HDR (in settings directory) includes the lines to be written in the beginning of the result file. The following macros can be used:
#DATE date
#TIME time
#NAME file name (no path)
#FULLNAME full file name
Example:
City of Espoo #DATE #TIME File: #FULLNAME
Result example:
City of Espoo 07.03.2004 13:26 File: D:\Program Files\3D-system\data\test_cab.xyz Line lengths by owner and code Lines 11 Average distance 33.433 m Owner 50 Espoo water code amount explanation XY XYZ 419 1 Water pipe 474.775 475.323 429 1 Soil water 29.472 29.476 -------------------------------------------------------- Totally 2 504.247 504.799
If a control LINECALC2.DAT exists in the settings directory, another output file (LINECALC2.TXT)will be created in the settings directory.
Input in the control file all the codes you want to have in the output file.
Example:
Control file (LINECALC2.DAT):
Code type1 type2
140 1 1 141 1 2 ! 122002 1 1 122003 1 2 122006 1 1 142002 2 1 142003 2 2
Output file (LINECALC2.TXT): (with test.xyz file)
T1-field type1 length type2
1 1 1085.31 1 1 1 710.17 2