Sample Format Strings

Sample Format Strings

Sample Format Strings

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.
    • Related Articles

    • Writing a Custom Format String

      Writing a Custom Format String There may be times when it is necessary to write a custom Format String for use with MUS. If you do not see the name of the your application listed in the Select Format portion of the Format Strings tab you will most ...
    • Adding a Format String

      Adding a Format String This feature allows users to add custom format strings for applications not currently listed in the Format Strings tab. How to add a Format String: If you do not see the name of your application listed in the Select Format ...
    • Restoring a Format String

      Restoring a Format String This feature allows users to revert back to the preset Format Strings of MUS. Any custom Format Strings a user added are deleted and any Default Format Strings a user deleted are restored. How to Restore Default Format ...
    • Additional Help with Custom Format Strings

      Additional Help with Custom Format Strings If you are unsure of how to write a Format String for your application, please feel free to e-mail contactus@revware.net for additional help.
    • Deleting a Format String

      Deleting a Format String This feature allows users to delete a format string from the Select Format window of the Format Strings tab. How to Delete a Format String: Click on the Format Strings icon . Select the format you wish to delete by clicking ...