Router-CIM Automation Suite

rcim_2024_header


rcim_2024_header


Previous topic Next topic  

rcim_2024_header


Previous topic Next topic  

Individual Numeric Formatting

The other method of format control is applied on a code-to-code basis.  This format control is not applied to any other code in the $PP file.  Any format string that can be specified in the header can also be specified in the ';F' switch applied to the code.

The same format control in the above example could have been applied to a single code as follows:

Z#3.4;F#LRD=X

This defines a letter code of Z to be output followed by a numeric value obtained from the current X value.  This numeric value will be formatted with 3 places to the left and 4 places to the right of the decimal point.  Further formatting control has been indicated by the presence of the 'F' switch with its parameter string LRD.  Each character in the parameter list specified:

FIXED/LEFT (L). FIXED/RIGHT (R), DECIMAL/OFF (D).

If the number 2.34 was in the .DXF file the following formatted number would be produced using the .$PP file entries outlined above:

234

The presence of the 'F' switch will cancel any formatting controls specified by $HEADER codes.