Automatically extract measurements, features and characteristics from XML written in GOM Inspect Exchange Format.
- Measure part in GOM Inspect
- Export XML with measurements to a network drive
- Node-RED monitors shared folder and kicks off the data load flow
- Read and parse XML
- Save parts, features, characteristics and measurements to SQL database
- Move XML file to archive folder
npm install node-red-contrib-readdir
npm install node-red-contrib-fs-ops
npm install node-red-contrib-re-postgres
For details and sample SQL code go to our blog article.
Edit blue PostgreSQL nodes and enter your database connection information. Additionally, edit Inject nodes and change folder path to your XML files.
Create archive folder inside source folder.
File name should be in specific format: partNumber_partName.xml or partName.xml i.e. 9877212_Trunk lid.xml
Measurement date is based on file modify date.
You could add file watcher instead of an interval, however, depending on your operating system and where files are located it might not be supported or not working correctly. Pulling is a safe bet.
SQL code in the flow is written in a way that it won’t create duplicate parts, features, characteristics and measurements even if you reprocess the same file.
Copyright (c) 2020 Kenso Software, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.