Suppress Generation of Tasks on Retrieve - Intergraph Smart P&ID - 10 - Help - Intergraph

Intergraph Smart P&ID Help

Language
English
Product
Intergraph Smart P&ID
Search by Category
Help
Smart P&ID Version
10
Smart Engineering Manager Version
11
SmartSketch Version
10.0(2018)

When retrieving documents in Smart P&ID, it is possible to suppress the generation of Create, Update, or Delete tasks for specified document types by adding code in the Select criteria field for the appropriate MapClass object (SPMapClassDef).

To ensure the maintenance of data integrity in other tools, after you have made the definitions in a particular MapClass object for suppressing the generation of tasks and you subsequently publish drawings, do not change or remove those definitions during the course of the integrated project.

  1. Open the Tool schema in the Schema Editor.

  2. Open the SPPIDDataMap.xml on the Tool Schema tab.

  3. Expand the SPMapClassDef node.

  4. Scroll down to the PipeRun map class and right-click the node.

  5. On the shortcut menu, select Edit PipeRun.

  6. On the Edit Map Class Definition dialog, select the Advanced tab.

  7. In the Select criteria field, enter the code for suppressing the generation of tasks for the document types you specify.

    A special DocType called "Deleted and Unclaimed Objects" can be published by applications. This DocType contains published objects which were moved and then later deleted – for example, all objects in the Instrument Index in Smart Instrumentation could be published once and then subsequently published with a filter applied. The software now identifies those objects excluded by the filter as moved (unclaimed). If you then delete any of those unclaimed objects and publish again, the objects will appear in the "Deleted and Unclaimed Objects" DocType. To ensure that "Deleted and Unclaimed Objects" are included when suppressing the generation of Delete tasks, you should include in the Select criteria field "Deleted and Unclaimed Objects", with the understanding that this document will be retrieved automatically from all applications when necessary.

Code Syntax

Use the following code syntax for suppressing task generation:

NoDeleteTasksForDocTypes=[DocType1;DocType2;...;DocTypeN]/NoCreateTasksForDocTypes=

[DocType1;DocType2;...;DocTypeN]/NoUpdateTasksForDocTypes=[DocType1;DocType2;...;DocTypeN]

where the code elements are as follows:

NoDeleteTasksForDocTypes suppresses generation of Delete tasks for the specified document types.

NoCreateTasksForDocTypes suppresses generation of Create tasks for the specified document types.

NoUpdateTasksForDocTypes suppresses generation of Update tasks for the specified document types.

  • A forward slash (/) separates the commands for each task type (Delete, Create, Update).

  • For each task type, the document type names or IDs are separated by a semicolon (;) as shown:

    In this example, EE82 is the ID for PFD documents, and EE84 is the ID for Instrument Index documents.

  • To find the name or ID of a document type, go to the retrieved document and use the ‘DocType’ property value of the IDocument interface.

Code Example

The following code is used to suppress generation of Create and Delete tasks for PFD and Instrument Index documents (using document type names and IDs) including Delete tasks for deleted and unclaimed objects:

NoCreateTasksForDocTypes=PFD;EE82;Instrument Index;EE84/NoDeleteTasksForDocTypes=PFD;EE82;Instrument Index;EE84;Deleted and Unclaimed Objects