### Using DataPageStats.exe

This tool lets you create a new XML statistics file from your current part program. If you're using PC-DMIS 2010 or higher, you can simply use the STATS/ON command in PC-DMIS instead.

To use this tool:

1. Ensure that your PC-DMIS part program contains dimensions.

2. In your PC-DMIS part program, add an EXTERNAL COMMAND at the end of the part program that references the DatapPageStats.exe file. By default, this file is located here:
   C:/Program Files/WAI/DataPage+/DataPageStats.exe

3. Execute your part program. When the execution reaches the EXTERNAL COMMAND, the executable runs. A progress bar appears while the XML output is performed.

4. Once the program executes a part program containing statistical data, it creates these two files and places them in your DirectoryForStatsFiles sub directory:

- An XML file based on the data within that program.

- An XAML CAD model of your part.

5. Once these files exist inside the directory, you can use the PcdmisXMLStatsToDatabase.exe file or the DataImporter.exe file to import the XML statistics and the XAML file into a Datapage+ database of your choice. See "Using PcdmisXMLStatsToDatabase.exe" and "Using DataImporter.exe".