### Step 2: Import Data from PC-DMIS to DataPage+

Create a simple PC-DMIS part program with at least one feature and a dimension for that feature. Once that is done, before features are measured, you need to insert a STATS/ON command that points to your defined data source. You can then execute your part program to send data to your database.

Note: The demo database is intended for viewing purposes only. If you are want to send actual statistical data from PC-DMIS to DataPage+, create a new database or load an existing one.

Procedure for PC-DMIS 2009 and Later

1. Place your cursor at the top of your part program.

2. Select Insert | Statistics Command | Statistics to access the Statistics Options dialog box.

3. Select the data source you just created from the Data source drop–down list.

See the "Using the Statistics Options Dialog Box" topic in the PC-DMIS Core documentation for more specific information on how to use this dialog box.

4. Enter your user name and password if needed.

5. Click Test Connection and then click OK.

6. PC-DMIS inserts the STATS/ON command:

STATS/ON,SPC_DATABASE,DataPageLocal

7. Execute your part program. Once execution finishes, the data will get sent to the SQL database.

8. Now, launch the DataPage+ application, and log in.

9. Select All Parts from the side bar. You will see a newly added CAD thumbnail image in the main view. This new "part" contains the data sent from your PC-DMIS part program. For information on working with parts, see the "Parts" section.

Procedure for PC-DMIS 4.3 and Earlier

You cannot do this using the usual STATS/ON command with these versions of PC-DMIS because they do not support the newer DataPage+ database format. For legacy versions of PC-DMIS, you will need to use some statistics tools provided by the DataPage+ installation to convert and send your data as XML files into a DataPage+ database. See the "Statistics Tools" topic for information on using these tools.