Here are some sample
Format Strings to use as reference when writing your own:
- %.2f,%.2f,%.2f
Enters XYZ values using 2
decimal points of precision and separates the values with commas.
- %.3f,%.3f,%.3f
Enters XYZ values using 3
decimal points of precision and separates the values with commas.
- %.4f,%.4f,%.4f
Enters XYZ values using 4
decimal points of precision and separates the values with commas.
- %.4f %.4f
%.4f \n
Enters XYZ values using 4
decimal points of precision, separates the values with spaces, and sends a
carriage return at the end of the string.
- %.3f,%.3f
Enters X and Y values (omits
Z) using 3 decimal points of precision and separates the values with
commas.
- %.4f,%.4f,0.0
Enters X and Y values (enter
"0.0" for Z) using 4 decimal points of precision and separates the values with
commas.
- %.4f\t%.4f\t%.4f
Enters XYZ values using 4
decimal points of precision and separates the values with tab
characters.
- %.4f\t%.4f\t%.4f\t\n
Enters XYZ values using 4
decimal points of precision, separates the values with tab characters, and
finishes with a final tab and a carriage return.
- \t\t%.4f\t%.4f\t%.4f\t
Enters 2 tab characters
followed by XYZ values using 4 decimal points of precision. The values are
separated with tab characters, and finish with a final tab. In this example, it
should be assumed that the program, after accepting the point data, leaves the
focus in a field other than the "X" field, requiring 2 tabs to get back to the
"X" field. The final tab would be required to take the focus from the "Z" field
to an "OK" or "Take Point" button.
- %.4f\n%.4f\n%.4f\n
Enters 4 decimal points of
precision and separates values with a carriage return.
Here is a sample
Format String that exports both tip position and stylus orientation
values:
- %.4f\t%.4f\t%.4f\t%.4f\t%.4f\t%.4f
\n
Enters
XYZ position and the associated IJK stylus approach vector values using 4
decimal points of precision, separates the values with tab characters and
finishes with a carriage return. This is the pattern used by the Excel +ijk
default format string.