A header file can be defined in the result settings. This header file can contain fixed text or macros, that will be replaced using correct values
Following macros are available in a header file:
Makro | Kuvaus |
---|---|
#DATE | Date. Format can also be given (e.g. #DATE%YYYY-MM-DD) |
#TIME | Time. Format can also be given (e.g. #TIME%hh:mm:ss) |
#FILEPATH | Active file name with full path |
#FILENAME | Active file name without full path |
Additionally, project macros are available. Their values are searched from converter settings, active project or common project settings in this order.
Same macros work also with template files.
You can use also attributes from the file by putting $-sign in front of the attribute name.
$PROJECT The value from file PROJECT-attribute. $DATE The value from file DATE-attribute.
Date, time and numeric type attribute values can be formatted using common value formatting rules (e.g. $SCALE%.2, #DATE%YYYY-MM-DD or #TIME%hh:mm:ss). Date and time default formats come from operating system settings.
Main calculation header example:
Yritys: #ORGANIZATION URL: #URL Tekijä: #AUTHOR Päiväys: #DATE
Calculation specific header example:
Tiedosto: #FILEPATH Kellonaika: #TIME
Calculation result file with above files:
Yritys: 3D-system Oy URL: http://www.3d-system.fi Tekijä: Mikko Syrjä Päiväys: 16.3.2011 Tiedosto: C:\Users\Mikko\Documents\3D-Win\Data\test.xyz Kellonaika: 13:55 Suorakulmainen laskenta T4 X Y P1 2963 6697122.546 3444239.380 P2 2068 6697213.601 3444391.689 T4 X Y A-mitta B-mitta dZ 2113 6697207.532 3444320.754 113.453 -31.189 -7.160 2351 6697168.913 3444358.518 126.050 21.335 -6.879 2129 6697152.102 3444318.631 83.188 15.297 -6.602