Creating an Excel Form Report Command

This procedure explains how to insert the Excel Form Report command into the measurement routine.

  1. Create a template with an .xlsx or .xlsm extension in Microsoft Excel. (You can create a template on any computer. You do not need to install Microsoft Excel on a computer that is connected to a CMM.)

  2. Copy the template file (.xlsx or .xlsm) into the following folder:

C:\Users\Public\Documents\Hexagon\PC-DMIS\2022.1\ExcelFormReport\Templates

All the templates must be stored in this folder. PC-DMIS provides some default templates. You must ensure that the templates' headers, footers, fonts, and format conform to your organization's requirement.

  1. To insert the Excel Form Report command, select Insert | Report Command | Excel Form Report to open the Excel Form Report dialog box. You can also type the EXCELFORMREPORT command in the Edit window.

Excel Form Report dialog box - Form tab

  1. From the Excel Form Report dialog box, in the ID box, type a name for the report, or keep the default value.

  2. From the Template list, select the template. The list displays all the templates in the Templates folder. Refer to step 2.

PC-DMIS displays the template in the view area. If the template contains a .layout.xml file, the view area displays the template's data stored in the .layout.xml file. PC-DMIS generates the .layout.xml file for each template after you associate the fields with cells and save the command. The file name is <form name>.layout.xml, where <form name> is the name of the template.

If you select AS9102 (a default template that comes with PC-DMIS), and the template contains the AS9102.layout.xml file, then the view area shows something like this:

If you select AS9102, and the AS9102.layout.xml file is not available, then the view area shows something like this:

If the .layout.xml file exists, you do not have to configure the template unless you want to edit it. From the Excel Form Report dialog box, click Create to insert the command into the Edit window.

  1. To configure the template, you need to fill the template with header and data fields. You can do this in one of two ways:

  2. Method 1: From the left side of the view area, you can use the Part Info. and TraceField groups to fill the header cells of the template. Drag a field from those groups on the cell where it fits (for example, drag Part Name into the Part Name cell).

If you don't see anything in the TraceField group, you need to first add TRACEFIELD commands into your measurement routine. For information on how to insert TRACEFIELD commands, see "Inserting TRACEFIELD Commands".

From the left side of the view area, you can use the Dimension, Custom Fields, and Summary groups to fill the column or row of the template. Drag a field from those groups on the cell where it fits (for example, drag Counter into the Char No. cell).

Method 2: Right-click on the cell where you want to associate the field, navigate to the required field, and select it.

Example of Part Number cell association with the Part Number field

  1. If the template has multiple worksheets, select the tab in the view area and associate the data as defined in step 6.

  2. To clear the association of data in a single cell, select the cell and press Ctrl + Delete. You can also right-click on the cell and select Clear reference. To clear the associations of data in multiple cells, select the area of cells, and press Ctrl + Delete.

  3. After you associate the fields in rows or columns, select all of the associated data fields, right-click on them, and select Set as data area. This sets the data area and highlights the area with a yellow background. The data area defines the collection of data fields that PC-DMIS needs to copy for every dimension to fill the template.

The data area (row or column) fills with data from the first dimension after you execute a measurement routine.

  1. To clear the data area, select the data area, right-click, and select Clear area | Data area. To modify the data area, select new cells and redefine it.

  2. If required, add a footer. For help, see the "Footer" topic.

  3. To insert the Excel Form Report command, in the Excel Form Report dialog box, click Create. This inserts the command into the measurement routine.

Command Mode

EXCEL_FORM1=EXCELFORMREPORT/TEMPLATE=AS9102, TYPE=XLSX

            RESULT FOLDER/C:\Users\Public\Documents\Hexagon\PC-DMIS\2019 R1\ExcelFormReport\Results

Summary Mode

If you do not define the data area, PC-DMIS displays the following message when you click OK:

PC-DMIS Message

Data area is not defined. Do you want to continue?

If you click Yes, PC-DMIS still inserts the command into the measurement routine. When you execute the measurement routine, the report file doesn't display any measurement data.

You can click No and set the data area to see the measurement data.

You have successfully inserted the Excel Form Report command into your measurement routine.

More:

Report Settings

Custom Fields

Data Tab

Footer

Defining NO DATA Areas

Report Modes

Important Notes