User Guide and Technical Reference
This utility provides a high-speed bridge between database files (.dat) and Microsoft Excel (.xlsx). It is specifically designed to facilitate bulk library management, allowing users to leverage spreadsheet features to build complex tool databases efficiently.
Supported Database Files
This tool is optimized for database files commonly found in the \MACH\resource\library directory, including:
- tool_database.dat
- holder_database.dat
- shank_database.dat
- feeds_speeds.dat
- cut_methods.dat
- tool_materials.dat
Backup Recommendations
Maintain backup copies of your original .dat files before performing bulk updates.
Bulk Library Management with Excel
The primary purpose of this tool is to replace manual data entry with efficient bulk processing.
- Initial Export: Generate the template structure from an existing file.
- Integration: Copy data directly into corresponding Excel columns.
- Mass Editing: Use Excel's features to update hundreds of values simultaneously.
- Validation: The tool checks for duplicate Library References (LIBRF) or values exceeding system limits.

Excel Conditional Formatting
When converting a database file to Excel, the application automatically injects conditional formatting rules into the generated spreadsheet. This highlights problematic cells in red (such as entering text into a number-only column or leaving a mandatory field blank), allowing you to easily spot and correct validation errors before importing the data back.
Note: If you prefer to export a completely raw spreadsheet without these highlights, you can disable "Enable Excel conditional formatting" in the application Settings under the Data & Validation section.
Common Errors and Troubleshooting
| Error Message | Cause | Resolution |
|---|---|---|
| Duplicate Library Reference | Multiple entries share the same LIBRF | Ensure every tool has a unique ID unless using rtype 2 exceptions |
| Missing separator '|' | A data row count does not match the FORMAT definition | Check that all columns are properly separated |
| Value below minimum | Data exceeds physical or system constraints | Adjust the value in Excel (e.g., Diameter > 0) |
| DATA before FORMAT | Structural error in source file | Ensure the FORMAT line appears immediately after #CLASS |
