Diagram listing configuration

In the Project Environment dialog, in [library or project] > Diagram > Diagram Listing Configuration, the project administrator can define configurations that enable diagram designers to generate diagram object listings in Microsoft Excel format. P&ID can output listings in three different ways, as per the configuration: all objects in the same sheet, only one object per sheet (multiple sheets), or only one object per workbook file.

Creating a diagram listing template

Create a Microsoft Excel template for use in diagram listing configurations. The template file can include header cells and data cells, which you can map in the listing configuration. This allows for automatic population of cells when a diagram designer generates a listing.

Do the following:

  1. Use Microsoft Excel to create the template file.

  2. Use the CADMATIC desktop to save the template in COS.

Creating a diagram listing configuration

Create a diagram listing configuration that determines what data is included in header and data cells when a diagram designer generates a listing. Header cells can derive their value from a PI_CATALOG column, a diagram COS object attribute, or a project COS object attribute. Similarly, data cells can get their value from sources such as a data request, an SQL database column, or a diagram object attribute.

Prerequisites

Do the following:

  1. Use the P&ID application to create a new listing configuration.

  2. Define the general properties.

  3. In the Header data section, define the data to be inserted into the header cells of the Excel file.

    • New – Opens the Excel Header Cell Configuration dialog for creating a new header cell mapping.

    • Edit – Opens the selected header cell mapping for editing.

    • Delete – Deletes the selected header cell mapping.

  4. In the Data tables section, define the columns of data to be inserted into the Excel file.

    • Running sheet – If you chose to include a summary sheet in the generated files, this field lists the sheets of the template file. Select which sheet to use as the template for the data sheets.

    • New – Opens the Data Table Editor dialog for creating a new data request.

    • Edit – Opens the selected data request for editing.

    • Delete – Deletes the selected data request.

  5. In the Summary data section (if enabled), define the data cells to be inserted into the summary sheet of the Excel file.

    • New – Opens the Data Table Editor dialog for creating a new data request.

    • Edit – Opens the selected data request for editing.

    • Delete – Deletes the selected data request.

  6. The Descriptions in Excel setting allows the Description texts defined in Data Table Editor to be inserted into the data table (does not affect header cells).

    • Cell to the left from value – Insert the descriptions to the left side of the data.

    • Cell above value – Insert the descriptions above the data.

    • No descriptions – Do not insert descriptions to listings.

    Note: If the Excel template already has something in the given cell, then the inserted Description value overwrites the template value. If the Description field is left empty, then the template's values are preserved.

  7. Click OK. The new configuration is shown in the configuration list.

Data Table Editor

You can define which diagram objects and what object-specific data to include in the listings. If the listing is of type "Listing", you can also have the data automatically sorted in the output by one or more columns, in ascending order of the values.

Do the following:

  1. In the Listing Configuration dialog, in the Data tables section, click New. The Data Table Editor dialog opens.

  2. Define the general properties.

  3. In the Data requests section, define the data to be inserted into the columns of the table.

  4. When you have defined the required data mappings, click OK to close the editor.

Selection Query Editor

You can specify which sub-tables to include when generating a diagram listing and define rule sets that an object must fulfill to be selected from those sub-tables. For example, only the VALVES sub-table, and from there only those valves that have a Position ID.

Do the following:

  1. In the Data Table Editor dialog, in the Object selection query setting, click Edit. The Selection Query Editor dialog opens.

  2. In the Subtables section, select which sub-tables to include when getting data for listings. (If there are no sub-tables, this section is empty.)

  3. In the Rule sets section, define rule sets that select objects from the main table or the included sub-tables.

    • New – Opens the Selection Query Rule Set Editor dialog for creating a new rule set.

    • Edit – Opens the selected rule set for editing.

    • Delete – Deletes the selected rule set.

  4. When you have defined the required rule sets, click OK to close the editor. The data request is displayed in the Data Table Editor dialog.

Selection Query Rule Set Editor

You can define a set of rules that an object must fulfill to be selected from a sub-table.

Do the following:

  1. In the Selection Query Editor dialog, click New. The Selection Query Rule Set Editor dialog opens.

  2. In the Rules section, define rules that select objects from a given sub-table.

    • New – Opens the Selection Query Rule Editor dialog for creating a new rule.

    • Edit – Opens the selected rule for editing.

    • Delete – Deletes the selected rule.

  3. When you have defined the required rules, click OK to close the editor. The rule set is displayed in the Selection Query Editor dialog.

Selection Query Rule Editor

You can define a rule that an object must fulfill to be selected from a sub-table.

Do the following:

  1. In the Selection Query Rule Set Editor dialog, click New. The Selection Query Rule Editor dialog opens.

  2. Define a rule for selecting objects from a given sub-table.

    • Table – Select the sub-table from the list.

    • Column – Select the data column from the list.

    • Operator – Select the query operator from the list and specify the expected value (if applicable).

  3. Click OK. The rule is displayed in the Selection Query Rule Set Editor dialog.

Example

The template has a header cell for the project name and a number of columns for the object data:

In the data mappings, the NS values are set to be sorted, and the values are retrieved using a data request that formats the value by removing digits and adding the unit:

A listing of type "Listing", arranged by NS values:

A listing of type "Separate data sheets":

A listing of type "All sheets in one file" with column headings (descriptions) defined in the data mappings:

Related topics

Listing