Diagram listing configuration

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

Creating a diagram listing template

Create a Microsoft Excel template that you can use in diagram listing configurations. The template file can contain header cells and data cells that you then map in the listing configuration, so that the cells can be automatically populated 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 defines what data to include in header cells and data cells when a diagram designer generates a listing. Header cells can take their value from a PI_CATALOG column, a diagram COS object attribute, or a project COS object attribute. Data cells can take their value from, for example, a data request, an SQL database column, or an 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 data cells 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 value is preserved.

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

Data Table Editor

You can define which objects and what data to include in diagram 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 data 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.

  3. In the Rule sets section, define rule sets that select objects from 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