Header file

When using Text-based formats, you can define a header file in the common converter settings. This header file can contain fixed text or macros, that will be replaced using correct values. Most of these work also with title file.

Common macros

Following macros are available in header file and title file:

MacroDescription
#DATECurrent date in native format.
#TIMECurrent time in native format.
#DATETIMECurrent time in ISO 8601 format.
#TIMESTAMPUTC time in ISO 8601 format.
#FILEPATHOriginal file name with full path
#FILENAMEOriginal file name without full path
#TYPENAMEFile type name
#POINTSAmount of single points in file
#LINESAmount of lines in file
#POINTCOUNTTotal amount points in file
#MINX, #MAXXX-coordinate minimum and maximum in file
#MINY, #MAXYY-coordinate minimum and maximum in file
#MINZ, #MAXZZ-coordinate minimum and maximum in file
#MINA, #MAXAMinimum and maximum section value in profile file or cross section
#MINB, #MAXBMinimum and maximum side offset in profile file or cross section
#MINC, #MAXCMinimum and maximum point distance in cross section
#SCALEPrinting scale (e.g. 1:2000 or 1:1000/1:100 with profile Z-scaling)
#SCALEZPrinting height scale in window settings
#PAPERPaper size from print settings (e.g. A4)
#PAPERSIZEPaper size in millimeters from print settings (e.g. 290 x 200)
#TOLXMIN,#TOLXMAXX-component minimum and maximum tolerance in control settings
#TOLYMIN,#TOLYMAXY-component minimum and maximum tolerance in control settings
#TOLZMIN,#TOLZMAXY-component minimum and maximum tolerance in control settings
#TOLXY,#TOLXYZMaximum XY- and XYZ-control tolerance in in control settings

Header macros

Following macros are available only in header file:

MacroDescription
#SAVEPATHSaved file name with full path
#SAVENAMESaved file name without full path
#FORMATUsed write format name
#FUNCTIONUsed format converter function
#CODELISTList of codes and their descriptions in the file

Title macros

Following macros are available only in title file:

MacroDescription
#INFO1Info field given in title settings
#INFO2Info field given in title settings
#INFO3Info field given in title settings
#AUTOSYSTEMAutomatic coordinate system name
#AUTOEPSGAutomatic coordinate system name EPSG code

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.


Example:

!
! File:                #filename
! Type:                #typename
! Funktion:            #function
! Standard time:       #(date%YYYY-MM-DD)T#(time%hh:mm:ss)+02
!
! Single points:       #points
! Lines:               #lines
! Points:              #pointcount
!
! Organization:        #organization
! Email:               #email
! Coding:              #codesys
!
! Limits:              (#(minx), #(miny)) - (#(maxx), #(maxy))
!
! Scale:               $(SCALE%.2)
!

Result:

!
! File:                arc.xyz
! Type:                Vector file
! Funktion:            Text
! Standard time:       2009-07-27T15:01:42+02
!
! Single points:       1
! Lines:               11
! Points:              51
!
! Organization:        3D-system Oy
! Email:               mikko@3d-system.fi
! Coding:              code_54.dat
!
! Limits:              (6697069.046, 3444038.514) - (6697351.622, 3444463.728)
!
! Scale:               1000.00
!
    Code      Id             X             Y             Z
               5   6697251.000   3444093.000         0.000
     127       1   6697069.046   3444187.820         0.000
     127       2   6697146.595   3444209.931         0.000
     127       3   6697127.048   3444274.149         0.000