Configuration of the program
The program can be configured through a configuration file. The contents of this file should look somewhat like this:
tribon_version=0
# Target Tribon version
# 0 = Tribon 5, 1 = M1, 2 = M2, 3 = M3
info=0
# 1=show extra information, 0=no extra information
partnumber=0
# 1=convert Nupas partnumber to POS clause, 0=no partnumber
dt=180
# data_type in PANEL statement
scheme_filename=panel-$panelname$-section-$sectionnr$.sch
# filename for scheme files
linelength=70
# maximum line length for scheme file
tablength=6
# number of spaces for indentation
panelname=$sectionnr$-$panelname$-$panel_ps$
# name for panels
gn_type_limit=1000.0000000
# limit for paneltype GN
scheme_identifier=panel $panelname$ block $sectionnr$
# identifier on first line of scheme
shellframe_filename=shellframes-section-$sectionnr$.dat
# filename for shellframe file
shellframe_identifier=shellframes block $sectionnr$
# identifier on first line of shellframe file
shellframe_panelname=$sectionnr$-shellframe$shellframe_ps$
# panel name for shellframes
ncgbin=%NCGBIN%
# path for NUPAS executables
ncgstart=%NCGSTART%
# NUPAS startup directory
napa_db_version=%NAPA[R1-1]%
# NAPA database version
swedging_profile=100
# profile type to be used for swedging
significance=2
# number of decimals for real values
con_code_file=%NCGNORMS%\tribon\con_code.dat
# filename for file with stiffener endcut connection codes
con_dist_margin=10.0000000
# margin for distance in resolving endcut connection codes
bevel_code_file=%NCGNORMS%\tribon\bevel_code.dat
# filename for file with bevel conversion settings
surfaces_file=%NCGNORMS%\tribon\surfaces.dat
# filename with mapping of hull surfaces
The file consists of:
Integer values:
- tribon_version
- info
- partnumber
- dt
- linelength
- tablength
- significance
- swedging_profile
Real values:
- gn_type_limit
- con_dist_margin
String values:
- scheme_filename
- panelname
- scheme_identifier
- shellframe_filename
- shellframe_identifier
- shellframe_panelname
- swedging profile
- ncgbin
- ncgstart
- napa_db_version
- con_code_file
- bevel_code_file
- surfaces_file
Comments (#).
For setting the string values a number of variables can be used. These variables must be enclosed by '$', '&' or '%' characters.
$<variable_name>$ = variable specific to conversion program.
&<variable_name>& = variable from logistical database (dbase.log).
%<variable_name>% = environment variable.
The following specific variables are available:
- sectionnr - current section number
- platenr - current plate number
- panel_ps - Indication of whether a panel is positioned at S - starboard or P - port side or PS - over CL
- gn_panel_type - used for GN
- panelname - Nupas panel name
- shellframe_ps - see panel_ps, for shellframes
- serialnumber - number starting at 0 and increased by 1 for every converted panel
- phase - conversion phase
The syntax for variables is:
$<variablename>[<position>]$
<variablename> -name of the variable, such as sectionnr
<position > - [[R][C]<start>-<end>]
<start> - starting position
<end> -ending position
R - indicates that positions are counted from the last character.
C - indicates that all space characters are removed from the string.
Examples:
The variable sectionnr has value '123456789'
$sectionnr[3-5]$ => '345'
$sectionnr[R3-5]$ => '567'
$sectionnr[1-2]$ => '12'
$sectionnr[R1-2]$ => '89'
The value of the variables is determined during program execution.