Macros

These macros can be used with Point view, Point group, Attribute method, Title file, Code table and Text format.

Line macros

Following macros work with lines, areas and profiles:

MacroDescription
#COUNTAmount of points in line or profile
#AREAArea of closed area
#LENGTHSlope length of line or profile
#LENGTHXYHorizontal length of line or profile
#LENGTHZDifference of line or profile minimum and maximum heights
#MINX, #MAXXX-coordinate minimum and maximum
#MINY, #MAXYY-coordinate minimum and maximum
#MINZ, #MAXZZ-coordinate minimum and maximum
#MINA, #MAXAMinimum and maximum section value in line or profile
#MINB, #MAXBMinimum and maximum side offset in profile
#MINC, #MAXCMinimum and maximum point distance in cross section
#DELTAZSigned difference between line or profile endpoints
#LINESLOPESlope between line or profile endpoints
#REFX, #REFY, #REFZArea reference point coordinates
#SIZELine dash length or symbol size
#SPACELine symbol interval or area hatch line interval
#WIDTHLine drawing width or area hatch line width
#STYLELine drawing style or area fill style

Line point macros

Following macros work with line and profile points:

MacroDescription
#DZSigned height difference of line or profile section
#DA / #DBHorizontal distance between profile points
#DAZ / #DBZSlope distance between profile points
#DXYHorizontal distance between line points
#DXYZSlope distance between line points
#SLOPELine or profile section slope
#RADIUSLine arc radius

Point macros

Following macros work with all points:

MacroDescription
#X, #Y, #ZPoint coordinates
#APoint section or calculated attribute CRD_A
#BPoint offset or calculated attribute CRD_B
#CPoint distance from cross section
#SIZEText font size or point symbol size
#ALIGNText alignment
#ANGLEText or symbol angle between -200 - 200
#BEARINGLine section, text or symbol direction between 0 - 400
#VERTICALLine or profile section or text vertical angle between -100 - 100

General macros

Following macros work with all objects:

MacroDescription
#SURFACEObject surface from attribute T1
#CODEObject feature code from attribute T3
#IDObject id from either attribute T2 (lines) or T4 (points)
#SURFACENAMEShort name for object surface from code file
#CODENAMEShort name for object code from code file
#SURFACEDESCLong description for object surface from code file
#CODEDESCLong description for object code from code file
#DATE, #TIMECurrent date and time in native format.
#DATETIMECurrent time in ISO 8601 format.
#TIMESTAMPUTC time in ISO 8601 format.
#COLORObject color, code file color table index or RGB value
#TYPEObject type according to table below

Values returned by the macro #TYPE:

ValueDescription
POINTSingle point
LINELine
AREAArea
TEXTText
PROFILEProfile
SOUNDSounding
ROADroad alignment
FILEFile

Last value FILE works only with conversion file and means file attributes.