Professional Documents
Culture Documents
Administering components 3
COMOS
Administering pipes 4
Process
P&ID Administration Administering connection of
objects 5
Administering functions 6
Operating Manual
Administering symbols with
extended elements 7
Administering the flow
direction 8
Administering the P&ID data
flow (attribute 9
synchronization)
03/2020 V 10.3.3
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will be
used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property
damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified
personnel are those who, based on their training and experience, are capable of identifying risks and avoiding
potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended or
approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described.
Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this
publication is reviewed regularly and any necessary corrections are included in subsequent editions.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 3
Table of contents
P&ID Administration
4 Operating Manual, 03/2020 V 10.3.3
Table of contents
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 5
Table of contents
P&ID Administration
6 Operating Manual, 03/2020 V 10.3.3
Table of contents
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 7
Table of contents
P&ID Administration
8 Operating Manual, 03/2020 V 10.3.3
iDB Catalogs for Standards 1
The following catalogs are prepared in the iDB:
● "@30 > M00 > A50 > A10 P&ID Catalog (in the style of ISO 10628:2000)"
● "@30 > M00 > A50 > A15 P&ID Catalog (in the style of ISO 10628:2012)"
● "@30 > M00 > A50 > A30 P&ID Catalog (in the style of ISA 5.x)"
The COMOS documentation prefers examples based on ISO 10628:2000. The statements in
the COMOS documentation regarding the base objects according to ISO 10628: 2000 also
apply to the use of the catalog ISO 10628: 2012. Deviations are documented separately.
For more on this topic, see also chapter Base object "@30 > M00 > A50 > A15 ... ISO
10628:2012" (Page 174).
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 9
iDB Catalogs for Standards
P&ID Administration
10 Operating Manual, 03/2020 V 10.3.3
Administering project and unit structures 2
2.1 Offered unit structures
The unit structures that can are offered in the context menu when the "New" command is
selected depend on the project structure that was selected in the properties of an engineering
project. Category "General settings > Project", "Project structure" field
The unit structures are located in the base data under the base object node "@30 > M00 > A30
Units".
The structures according to EN follow the usual engineering structures of the chemical industry.
Structure according to EN
P&IDs are prepared for engineering within the unit structure. The unit structure according to EN
has an identical design, apart from a few P&IDs.
● "@30 > M00 > A30 > A20 > A10 > A10 > A10 Plant"
● "@30 > M00 > A30 > A20 > A10 > A20 > A10 Unit":
P&IDs can be created in the structures below the main unit.
● "@30 > M00 > A30 > A20 > A10 > A30 > A10 Subunit":
– P&IDs are created below the subunit.
– A number of category folders are created automatically below the subunit when a subunit
is created.
The Technique category creates a clearer structure for the engineering objects, for
example, by automatically collecting all pipes placed on a P&ID in one folder. You can
find additional information on this topic in the "P&ID Operation" manual, keyword
"Categories".
You do not usually need the "I&C (instrumentation & control)" folder until I&C
engineering. The positions are created below it, and the functions are created below. It
is sufficient for P&ID engineers to place functions on a P&ID.
You can find more information on this topic in the "EI&C Operation" manual, keyword
"Positions".
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 11
Administering project and unit structures
2.2 Unit structures according to standard
P&ID Administration
12 Operating Manual, 03/2020 V 10.3.3
Administering components 3
3.1 Global preset of component refreshing
You can set up the project in such a way that COMOS automatically decides whether
components should be refreshed and whether pipe spec mapping should be carried out.
Procedure
1. Open the base project.
2. Open the "System data" tab in the properties of a component.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 13
Administering components
3.3 Forcing action lines
See also
Dependencies when copying and pasting objects (Page 70)
P&ID Administration
14 Operating Manual, 03/2020 V 10.3.3
Administering pipes 4
4.1 Base object for pipe structures
Depending on the drawing type of the P&ID, a three-level pipe structure or a two-level pipe
structure is created when a user draws a pipe.
You can find more information on this topic in the "P&ID Operation" manual, keyword "Pipe
structures".
To construct the pipe structure, first prepare the base objects, which will be used in the pipe
structure, and set the base object for pipe sections in the project properties.
Procedure
1. Open the base object properties of a pipe.
Path in the database: "@10 > A20 > A10 > A10 > A40 > A10 > A10 Pipe"
2. Make the following settings:
– "Class" = "Position"
– "Subclass" = "None"
– "Creation option" = "Normal"
– "Creation mode" = "Free"
3. Open the base object properties of a pipe.
Path in the database: "@30 > M00 > A50 > A10 > A40 > A10 > A10 Pipe"
4. Open the "System" tab.
5. Open the "Elements" tab.
6. Prepare a pipe section as an element.
7. Optional: Prepare additional elements.
You can find additional information on this topic in the "Administration" manual, keyword
"Creating elements at base objects".
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 15
Administering pipes
4.1 Base object for pipe structures
Requirement
You have defined a pipe section as an element of a pipe in the base data. See also
chapter Preparing a base object of the pipe object (Page 15).
Procedure
1. Open the base object properties of the pipe section in the "@10" node.
Path in the database: "@10 > A20 > A10 > A10 > A40 > A10 > A20 Pipe section"
2. Open the "System" tab.
3. Make the following settings:
– "Class": "Position"
– "Subclass": "Pipe"
– "Creation option": "Normal"
– "Creation mode": "Free"
4. Open the "Connectors" tab.
5. Create an input "DI1" and an output "DQ1" of the type P&ID. The connectors must be named
"DI1" and "DQ1".
6. Open the properties of the pipe section in node "@30" which you created as element of the
pipe.
Path in the database: "@30 > M00 > A50 > A10 > A40 > A10 > A10 > A10 Pipe section"
7. Open the "Elements" tab.
8. Create a pipe segment named "SEG" as element.
Path in the database: "@30 > M00 > A50 > A10 > A40 > A10 > SEG Pipe segment"
You can find additional information on this topic in the "Administration" manual, keyword
"Adding elements".
Result
● If the user places a component with the attribute "Pipe cut mode" = "Segment separative"
on the pipe section, new pipe segments are created below the pipe section based on this
element. The branches are created below the pipe section and joined to the fitting by means
of their connectors.
If a pipe section is place on a P&ID, a pipe segment is created automatically below this pipe
section.
● If the user works in a P&ID with "M22_P1" drawing type, an engineering object of this pipe
section is created automatically below the pipe object when the pipe is drawn.
P&ID Administration
16 Operating Manual, 03/2020 V 10.3.3
Administering pipes
4.1 Base object for pipe structures
To prevent pipe objects from being created automatically for pipe sections, create a base object
with the following properties for pipe sections:
● "Class": "Device"
● "Subclass": "Pipe"
See also
Preparing a base object of the pipe segment (Page 17)
Specifying references in the project properties (Page 18)
Requirement
You have created a pipe segment as element of a pipe section. See also chapter Preparing a
base object of the pipe section (Page 16).
Procedure
1. Navigate to the inheritance source of the base object which you have created as element of
a pipe section.
Path in the database: "@10 > A20 > A10 > A10 > A40 > A10 > A30 Pipe segment"
2. Open the "System" tab in the properties.
3. Make the following settings:
Note
The name of the pipe segment must be "SEG". Do not change the name.
– "Class" = "Element"
– "Subclass" = "Pipe"
– "Creation option" = "Normal"
– "Creation mode" = "Free"
4. Open the "Connectors" tab.
5. Create an input "DI1" and an output "DO1" of the type P&ID. The connectors must be named
"DI1" and "DO1".
6. Open the properties of the base object which you have created as element of a pipe section.
Path in the database: "@30 > M00 > A50 > A10 > A40 > A10 > SEG Pipe segment"
7. Make the following settings:
– "Virtual" = "N times"
– "Inheritance mode" = "Active"
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 17
Administering pipes
4.2 Enabling selection of a standard pipe
Requirement
You have prepared the base objects for pipe objects, pipe sections and pipe segments. See
also section:
● Preparing a base object of the pipe object (Page 15)
● Preparing a base object of the pipe section (Page 16)
● Preparing a base object of the pipe segment (Page 17)
Procedure
1. Open the "Process engineering" category in the project properties.
2. Drag&drop the "Pipe section" element into the "Base object for pipe section" field, which you
have created for the pipe object. See also section Preparing a base object of the pipe
section (Page 16).
Preset object in database: "@30 > M00 > A50 > A10 > A40 > A10 > A10 > A10 Pipe section"
Result
The pipe structure is built based on the structure that you have generated by creating the
elements.
● 1. level
Owner of the pipe section: Pipe
● 2. level
Pipe section
● 3. level
Element of the pipe section: Pipe segment
P&ID Administration
18 Operating Manual, 03/2020 V 10.3.3
Administering pipes
4.3 Scripting a page reference for cross-page pipes
Objective
When you draw a pipe across several pages, the following data arise:
● On the report: Page references
● In the Navigator: Unconnected pipe segments
You can determine the counterpart of a page reference by means of a script.
Script command
● GetReferencedConnector
Transfer: The unconnected connector of a segment with a page reference
Return: The unconnected connector of the counterpart.
The segment searched for is the owner of the return object.
Example
Set Connector = a
Set PipeLib = CreateObject ("ComosPipeLib.PipeLib")
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 19
Administering pipes
4.5 Graphical properties of pipes
P&ID Administration
20 Operating Manual, 03/2020 V 10.3.3
Administering pipes
4.5 Graphical properties of pipes
4.5.4 Enabling the user to set the graphical properties of pipe segments
As standard, users cannot change the graphical properties of pipe segments. You can make
this possible as follows.
Procedure
1. Navigate to the base object for pipe segments in the base project.
2. Open the "Attributes" tab in the properties.
3. Create a new "Graphical options" tab.
Path in the database: "@10 > A20 > A10 > A10 > A40 > A10 > A20 > Y00T00039 Graphical
options"
Result
Users can change the graphical properties of pipe segments.
You can find more information on this topic in the "P&ID Operation" manual, keyword
"Changing graphical properties of pipes".
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 21
Administering pipes
4.6 Administering intersecting pipes
Note
CopyPipeConnectionAutoOff is ignored
If the script option CopyMainBranch is set, the script option CopyPipeConnectionAutoOff is
ignored.
Result
If the user draws a branch on the P&ID away from a pipe, the selected action is executed.
Objective
In the options script of report templates, you define how intersecting pipes are displayed.
You can find more information on this Proteus interface in the "P&ID Operation" manual,
keyword "Using intersecting pipes".
P&ID Administration
22 Operating Manual, 03/2020 V 10.3.3
Administering pipes
4.6 Administering intersecting pipes
One of the two pipes is drawn with a semicircle. The radius is defined by
IntersectionRadius.
Example:
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 23
Administering pipes
4.6 Administering intersecting pipes
One of the two pipes is cut visually by generating an invisible circle with the specified radius.
Example:
See also
Customizing pipe priorities (Page 24)
P&ID Administration
24 Operating Manual, 03/2020 V 10.3.3
Administering pipes
4.7 Deleting pipe / pipe section automatically
Column Description
"Description" Entry that is offered to the user for selection in the "Pipe priority" list.
"Value 1" Applies to the main pipe and to parallel pipes.
Determines whether a pipe is located in the foreground or the background when
two pipes cross one another.
A pipe with a higher value is located further in the foreground than a pipe with a
lower value. If two pipes with the same value cross one another, the script
option CutHorizontal makes the decision.
See chapter Administering representation of intersection (Page 22).
"Value 2" Defines the line color of the main pipe. The color is specified in Windows format
BGR.
"Value 3" Defines the line width of the main pipe.
"Value 4" Defines the line type of the main pipe. You can take the available values from the
standard table "Y10 > M20 > A10 > Y10M20N00008 Media line types", "Value
1" column.
"Value 5" Defines the line color of parallel pipes. The color is specified in the Windows
format BGR for the line color.
"Value 6" Defines the line width of parallel pipes.
"Value 7" Defines the line type of parallel pipes.
You can take the available values from the standard table "Y10 > M20 > A10 >
Y10M20N00008 Media line types", "Value 1" column.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 25
Administering pipes
4.8 Administering automatic assignment of line types
Application
You can find additional information on this topic in the "P&ID Operation" manual, keyword
"Using automatic assignment of line types".
Requirement
● You are familiar with automatic assignment of line types.
For more, see chapter Overview of automatic assignment of line types (Page 26).
P&ID Administration
26 Operating Manual, 03/2020 V 10.3.3
Administering pipes
4.8 Administering automatic assignment of line types
Procedure
To specify the component types to be used, follow these steps:
1. Select the "Assign line types" command in the "Plugins > Basic" menu.
The "Assign line types" window opens.
2. Select the "Component types > Equipment" tab.
3. Click the "Add component type" button.
The "Add component type" window opens.
4. Enter the key of the component, e.g. ARM.
5. Enter a description of the component if needed.
6. Close the dialog box by clicking "OK".
Repeat the procedure if the line type is planned for the connection between two components.
Define a function when the line type is planned for the connection between the component and
function. For more, see chapter Specifying the function used (Page 27).
Requirement
● A component is defined as a source or destination
For more, see chapter Specifying component types to be used (Page 26).
Procedure
To specify the function used, follow these steps:
1. Select the "Assign line types" command in the "Plugins > Basic" menu.
The "Assign line types" window opens.
2. Select the "Component types > Functions" tab.
3. Click the "Add component type" button.
The "Add component type" window opens.
4. Enter the key of the function, for example ARM.
5. Enter a description of the function if needed.
6. Close the dialog box by clicking "OK".
Requirement
● The used component types are created.
For more, see chapter Specifying component types to be used (Page 26).
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 27
Administering pipes
4.8 Administering automatic assignment of line types
Result
The line types are specified. COMOS generates the following standard tables:
● "Standard tables > Y10 > M20 > A10 > Y10M20N00003 > Y10M20N00003A01 Equipment
types for line type assignment"
● "Standard tables > Y10 > M20 > A10 > Y10M20N00003 > Y10M20N00003A02 Function
types for line type assignment"
● "Standard tables > Y10 > M20 > A10 > Y10M20N00003 > Y10M20N00003A03 Line types
for line type assignment"
Procedure
To add the "Line type class" attribute to the attributes of the base objects, follow these steps:
1. Navigate in the base project to the base object of the P&ID object, for which you want to use
automatic line types.
2. Open the base object properties.
3. Select the "Attributes > System data" tab.
P&ID Administration
28 Operating Manual, 03/2020 V 10.3.3
Administering pipes
4.9 Automatically placing T-pieces
4. Select the "Design mode" command in the context menu of the tab.
The design mode is activated.
5. Select the "New > Attribute" menu command in the context menu in the tab.
6. Enter "Y00A04485" as the name.
7. Enter "Line type class" as the description.
8. Link this attribute with the standard table:
Note
Remove lock
In order to use the "Assign line types" interface, remove the lock on the standard tables.
– For components:
"Standard tables > Y10 > M20 > A10 > Y10M20N00003 > Y10M20N00003A01
Equipment types for line type assignment"
– For measuring functions
"Standard tables > Y10 > M20 > A10 > Y10M20N00003 > Y10M20N00003A02 Function
types for line type mapping"
9. Close the dialog box by clicking "OK".
10.Activate working mode.
11.In the newly created attribute, select a value that specifies the component or measurement
function.
12.Save the base object.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 29
Administering pipes
4.11 Connector symbol for pipe spec-relevant information
7. Drag&drop the base object of a T-piece into the newly created field.
8. Confirm your entries.
Result
Depending on the setting of the "AutoPlaceTPiece" script option, either a T-piece is placed
automatically, a dynamic connection is created or a window with a query opens up. This
happens if the following conditions are met:
● The user draws a pipe which has the "Link to base object T-piece" attribute as branch to
another pipe.
● The user works on a P&ID which is based on the edited report template.
P&ID Administration
30 Operating Manual, 03/2020 V 10.3.3
Administering pipes
4.12 Merging pipelines automatically
In the database, the script for the "M22_P1" drawing type is configured in such a way that it
compares the values of the following attributes:
● Nominal diameter (Y00T00003.Y00A03451), flag text: "Size"
● Nominal pressure (Y00T00003.Y00A03449), flag text: "Rating"
● Pipe spec (Y00T00003.Y00A03453), flag text: "Class"
Customize the symbol script to evaluate other attributes.
Requirement
● The graphical merger of two half-open pipelines on the report is familiar.
You can find additional information on this topic in the "P&ID Application" manual, keyword
"Merging pipelines graphically".
Using "PipeLib"
"PipeLib":
public int MergePipes(IComosDDevice TargetPipe, IComosDDevice
SourcePipe, bool deleteSourcePipe = false, bool showDialog = true)
Parameter:
● TargetPipe
The selected and therefore pipeline to be retained . This pipeline is also used in background
mode, i.e. when no dialog appears (showDialog = False).
● SourcePipe
The pipeline to be discarded.
● deleteSourcePipe
This switch determines whether the pipeline to be discarded, <SourcePipe>, will also be
deleted in the Navigator.
● showDialog
Switches between background mode and the user dialog.
– True (default): The user dialog appears. The user decides which pipe is retained.
– False: Background mode. The use of the pipeline is controlled by <TargetPipe> and
<SourcePipe>.
Return:
● 0: Merger is not possible. Function aborts without merger.
● 1: Merge was performed.
Example script
Set PipeLib=CreateObject("ComosPipeLib.PipeLib")
If Not PipeLib Is Nothing Then
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 31
Administering pipes
4.13 Administering jacket pipes
Procedure
1. Switch to the base project.
2. Open the base object properties of the pipe segment.
3. Create the following attribute:
– cDB: "RI" tab, "JACKET" attribute
Suggestion for attribute description: "Jacket pipe"
– iDB: "Y00T00039 Graphical options" tab, "Y00A02186" attribute type: "Checkbox"
Suggestion for attribute description: "Jacket pipe"
4. Confirm your entries.
P&ID Administration
32 Operating Manual, 03/2020 V 10.3.3
Administering connection of objects 5
Pipes: "Sub Connect(Connector)" script
When you connect a component to pipes, the Sub Connect(Connector) script is called
either at the pipe section or on the pipe segment.
The script contains the GetDeviceConnectedToPipe call and optionally the
GetConnectorOfDeviceConnectedToPipe call. These calls determine the connected
components. See also chapter Search modes (Page 90).
If connecting the pipes takes too much time, you should check whether the script "Connect" is
necessary. The following is an example for the pipe segment:
1. Navigate to the base object of the pipe section in the base data.
2. Select the pipe segment in the "Elements" tab.
3. Open the properties of the pipe segment.
4. Select the "Script" tab.
5. Check whether the "Connect" script is necessary.
6. If the script is not always necessary, create a pipe base object in which this script is not
always called.
See also GetDeviceConnectedToPipe (Page 89) and
GetConnectorOfDeviceConnectedToPipe (Page 90).
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 33
Administering connection of objects
P&ID Administration
34 Operating Manual, 03/2020 V 10.3.3
Administering functions 6
6.1 Administering display of signal designations
Requirement
● The display of signal designations is known at the function symbol.
You can find more information on this topic in the "P&ID Operation" manual, keyword
"Showing signal designations at the function symbol".
Database adjustments
● Script library:
"@20 > A80 > M00 > A20 > M00S00075 PlaceSignalsSymbol"
● The script evaluates the following attributes:
"Y00T00001 System data" tab:
– "Y00A00523 Display signals" attribute
You can find more information on this topic in the "P&ID Operation" manual, keyword
"Showing signal designations at the function symbol".
– "Y00A05704 Sort order of signals" attribute
You can find more information on this topic in the "P&ID Operation" manual, keyword
"Sort signal designations at the function symbol".
– "Y00A05705 Pre-configuration of signals" attribute
This attribute controls which signals are always visible.
You can find more information on this topic in the "P&ID Operation" manual, keyword
"Showing signal designations at the function symbol".
● Example database:
– "@30 > M00 > A60 > A10 Function structure (in relation to DIN 19227-1:1993)"
– "@30 > M00 > A60 > A30 Function structure (in relation to IEC 62424:2008)"
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 35
Administering functions
6.2 Preparing connection of functions and components
P&ID Administration
36 Operating Manual, 03/2020 V 10.3.3
Administering functions
6.4 Administering process coupling and process connection
Auxiliary connectors that are not required for measuring functions can be deleted with a
COMOS attribute:
● "System data" tab, "Autodelete for not-connected connectors".
If necessary, you can also delete excess auxiliary connectors in the script with
AutoDeleteFreeConnectors. See also chapter Scripts (Page 167).
Similar functions
See chapter Administering process coupling and process connection (Page 37).
Objective
In some cases, positions are created automatically when you work with functions. You can find
more information on this topic in the "P&ID Operation" manual, keyword "Create positions
automatically".
In order for positions to be created automatically, the base object for positions must be specified
in the PositionCDeviceFullName script variable of the function.
Procedure
1. Navigate to the base object of a function.
2. Open the "Script" tab in the properties.
3. Edit the PositionCDeviceFullName script variable.
Default in the iDB:
The script block "UserScriptBlock2" is used.
The script variable uses the following attribute: "System data" tab, "Y00A03023 Link to
position" attribute.
Requirement
The following parameter is set in the options script of the report template:
EnableProcessConnection = TRUE
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 37
Administering functions
6.4 Administering process coupling and process connection
The automatic creation of the process coupling can also be set separately for measurement
functions and actuating functions:
● Only generate for measurement functions:
EnableProcessConnectionSensor = True
● Only generate for actuating functions:
EnableProcessConnectionActor = True
Procedure
1. On the base data end, open the "Attributes > System data" tab in the properties of a function.
2. Go to design mode.
3. Navigate to the following attribute:
"@40 > A10 > Y00 > A70 > B30 > Y00A03278 > Y00A03278 Component for process
coupling".
4. Drag&drop the attribute into the "System data" tab.
5. Set the value "Reference" in the "Type of display" list in the attribute properties.
6. Confirm your entries.
7. Change to working mode.
8. Drag&drop a process coupling to the "Component for process coupling" field.
Example: "@30 > M00 > A50 > A10 > A60 > A20 > A10 > A30 Nozzle for functions"
Note
Changing the process coupling
For the user to be able to change the process coupling, the "Y00T00001.Y00A03278"
attribute must also exist at the nozzle that you dragged to the "Component for process
coupling" field. You can refer to an inline device there, for example. In the inline device, you
then refer back to the nozzle so that the user can switch between the inline device and the
nozzle.
Result
If the function is created on the engineering end, the process coupling is also created.
In the case of measurement functions, the process coupling is automatically connected not only
visually on the report but also to the function (via its connectors). That is not the case for
actuating functions. Reason: The valve still needs to be prepared further and will be assigned
a drive. The function then needs to be connected with the drive.
See also
Interaction between process coupling and process connector (Page 39)
P&ID Administration
38 Operating Manual, 03/2020 V 10.3.3
Administering functions
6.4 Administering process coupling and process connection
Requirement
● You are familiar with the process coupling for functions.
See chapter Assigning a process coupling to functions (Page 37).
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 39
Administering functions
6.4 Administering process coupling and process connection
P&ID Administration
40 Operating Manual, 03/2020 V 10.3.3
Administering symbols with extended elements 7
7.1 Overview of extended elements for P&ID drawing types
Requirement
● You are familiar with the operation of the Symbol Editor.
You can find additional information on this topic in the "Administration" manual, keyword
"Configuring symbols".
● You are familiar with placing text in the Symbol Editor.
You can find additional information on this topic in the "Administration" manual, keyword
"Placing "text" in the symbol".
● For this you use a P&ID drawing type.
Objective
The "Extended elements" function comprises the following components:
● Text function "*V*P EXE: ..."
This text function can either define a nozzle or a dynamic connector.
● Text "*V*P IM: ..."
This text function recognizes the associated text function "*V*P EXE: ..." by its ID and
generates a connection line, if necessary.
Overview
● Using extended elements in the Symbol Editor
See chapter Using extended elements in the Symbol Editor (Page 42).
● Syntax of the *V*P test functions for extended elements
See chapter Syntax of the *V*P test functions for extended elements (Page 43).
● Controlling extended elements from the outside: Usage of a placeholder
See chapter Controlling extended elements with placeholders from the outside (Page 44).
● Example of extended elements
See chapter Example with vessel and functions (Page 45).
● Special cases when using extended elements
You can find more information on this topic in the "P&ID Operation" manual, keyword "Using
symbols with extended elements".
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 41
Administering symbols with extended elements
7.2 Using extended elements in the Symbol Editor
Requirement
● Objective and overview are known.
See chapter Overview of extended elements for P&ID drawing types (Page 41).
● For this you use a P&ID drawing type.
See also
Syntax of the *V*P test functions for extended elements (Page 43)
P&ID Administration
42 Operating Manual, 03/2020 V 10.3.3
Administering symbols with extended elements
7.3 Syntax of the *V*P test functions for extended elements
Requirement
● Objective and overview are known.
See chapter Overview of extended elements for P&ID drawing types (Page 41).
● For this you use a P&ID drawing type.
Syntax
Extended element:
● *V*P EXE:Symbol("ElementName");ID=<0815>;ConType=[NOZZLE;DynCon]*
– "ElementName"
"ElementName" identifies the element that is to be placed at the base object. You can
also enter a path for "ElementName". See chapter Navigating to the owner in the symbol
script (Page 86).
– ID
String. The ID must match the ID of "*V*P IM: ...".
– ConType: "NOZZLE"
Default is no ConType is set.
COMOS creates a nozzle at the position of the "Extended element connector". A
corresponding connector element must be prepared at the base object. If no "Nozzle"
element with the name "NOZZLE" has been prepared at the base object, no connection
is created. For more on this, see Base object "@10 > A20 > A10 > A10 > A60 > A20
Nozzles and connections" (Page 165).
– ConType: "DynCon"
COMOS creates a dynamic connection at the position of the "Extended element
connector".
Example: *V*P EXE:Symbol("M1");ID=1234;ConType=Nozzle. The placed element
symbol has the name "M1" and the ID "1234". The connection type "Nozzle" is specified for
"Extended element connector".
Extended element connector:
● *V*P IM:<ID>;<TargetConnector>*
– ID
String. The ID must match the ID of "*V*P EXE: ...".
– TargetConnector
Name of the connector to be connected.
Example: *V*P IM:1234;DI3*. This text item connects with the connector "DI3" of the
extended element "1234".
See also
Example with vessel and functions (Page 45)
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 43
Administering symbols with extended elements
7.4 Controlling extended elements with placeholders from the outside
Requirement
● Objective and overview are known.
See chapter Overview of extended elements for P&ID drawing types (Page 41).
● For this you use a P&ID drawing type.
Objective
Extended elements of a symbol can be controlled without having to administer the symbol text.
To do this a placeholder is used that reads an attribute value. If the attribute is edited, the
extended element changes accordingly.
Administering placeholders
1. Open the properties of the base object at which you want to create a symbol with an
extended element.
Example:
"@30 > A50 > A15 > A10 > A10 > A10 > A10 Vessel, general, with optional agitator"
2. Select the "Y00T00039 Graphical options" tab.
3. Create the following attribute:
Name: "Y00A01464AA01"
Description: "Subsymbol #AA01 ="
Display type: Edit field
Type: Alphanumeric
4. If required, create additional incremented attributes.
Example: Name: "Y00A01464AA02" / Description: "Subsymbol #AA02 ="
Maximum: 99
5. Alternative: Navigate to the inheritance source of the "Y00T00039 Graphical options" tab
and edit the source.
In this case all base objects that use this tab contain the new attributes.
6. Confirm your entries.
7. Open the symbol.
8. For example, generate the following symbol text:
*V*P EXE:Symbol("#AA01");ID=123;ConType=DynCon*
P&ID Administration
44 Operating Manual, 03/2020 V 10.3.3
Administering symbols with extended elements
7.5 Example with vessel and functions
Requirement
● Objective and overview are known.
See chapter Overview of extended elements for P&ID drawing types (Page 41).
● For this you use a P&ID drawing type.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 45
Administering symbols with extended elements
7.5 Example with vessel and functions
3. Create the following object for the "Plant" object using the context menu:
"New > A10 Plant"
4. Create the following object for the created "Plant" object using the context menu:
"New > A10 Subunit"
5. Create the following report for the created "Subunit" object using the context menu:
"New > FB.04? P&ID Flow chart in the style of EN 10628, DIN A3"
6. Open the node "A10 Subunit".
7. Create the following object in the "A10 Equipment" category folder:
"New > A10 Vessels and tanks > A10 Vessels and tanks with agitator > A10 Vessels general
with optional agitator"
8. Create the following objects in the "A50 EI&C" category folder:
"New > D Density"
"New > D Density"
9. Create the following object in the context menu of "001 Density" and "002 Density":
"New > D Density"
P&ID Administration
46 Operating Manual, 03/2020 V 10.3.3
Administering symbols with extended elements
7.5 Example with vessel and functions
13.Open the text properties one after the other. Edit the text functions as follows:
– *V*P EXE:Symbol("..|..|A50|001|
001");ID=Test_123;ConType=Nozzle*
– *V*P EXE:Symbol("..|..|A50|002|
001");ID=Test_456;ConType=DynCon*
– *V*P IM:Test_123;DI3*
– *V*P IM:Test_456;DI3*
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 47
Administering symbols with extended elements
7.5 Example with vessel and functions
16.Optional: Set the font size to "4" for all text functions. This approach makes it easier to work
in the Symbol Editor because the symbol is more clearly displayed.
17.Click on "Save" in the Symbol Editor and close the Symbol Editor.
18.Save the changes of the base object.
P&ID Administration
48 Operating Manual, 03/2020 V 10.3.3
Administering symbols with extended elements
7.6 Note on the interaction with functions
See also
Note on the interaction with functions (Page 49)
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 49
Administering symbols with extended elements
7.6 Note on the interaction with functions
P&ID Administration
50 Operating Manual, 03/2020 V 10.3.3
Administering the flow direction 8
8.1 Administering the behavior of the flow direction
The "Cancel requirements" attribute changes the behavior of the flow direction.
You can find more information on this topic in the "P&ID Operation" manual, keyword
"Changing the flow direction of multiple objects".
Procedure
1. Open the properties of a base object on which you would like to set the attribute.
2. Select the "Attributes > System data" tab.
3. Go to design mode.
4. In the base data, navigate to the attribute "@40 > A10 > Y00 > A20 > C20 > Y00A00992 >
Y00A00992 Cancel requirements".
5. Place the attribute on the selected tab.
6. Confirm your entries.
Result
The standard table "Y10 > M20 > A10 > Y10M20N00011 Cancel conditions for flow direction"
is stored at the "Cancel requirements" attribute. Depending on which value the user selects at
the engineering end, the attribute has the following effects:
COMOS uses the "Cancel requirement = 0" attribute to check whether there are several flows
for a component that have been defined with the following attribute: "Multiway object". See also
section Administering the behavior of the flow direction for multiway objects (Page 52).
If the flow direction changes, COMOS only mirrors the connectors affected by the change in
flow direction.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 51
Administering the flow direction
8.3 Administering a flow direction arrow
8.2 Administering the behavior of the flow direction for multiway objects
You use this attribute on multiway objects. The "Multiway object" attribute can be set at the
component so that multiple connectors dependent on the flow direction can be used.
You can find more information on this topic in the "P&ID Operation" manual, keyword "Change
in flow direction for multi-way objects".
Procedure
1. Open the properties of a base object on which you would like to set the attribute.
2. Select the "Attributes > System data" tab.
3. Go to design mode.
4. In the base data, navigate to the attribute "@40 > A10 > Y00 > A90 > C20 > Y00A04491
Multiway object".
5. Place the attribute on the selected tab.
6. Confirm your entries.
Result
When the flow direction at a connector changes, the connector is swapped with its partner
connector. The change of flow direction is passed on to the connected pipe.
P&ID Administration
52 Operating Manual, 03/2020 V 10.3.3
Administering the P&ID data flow (attribute
synchronization) 9
9.1 Note on overview
The overview of the P&ID data flow in the iDB is described in the "P&ID Operation" manual,
keyword "Overview of the data flow in the iDB".
Procedure
1. Open the project properties.
2. Select the category "Process engineering > Attribute synchronization tool".
3. Select one of the two entries:
– "Refresh components"
– "Data Flow Manager"
4. Confirm your entries.
Usage
● Data Flow Manager
See chapter Administering the data flow manager (Page 53).
● Refresh components / UpdateConnected
See chapter Administering the data flow via static attributes (UpdateConnected) (Page 57).
Overview
● Check the project properties.
See section Select attribute synchronization tool (Page 53).
● Check the report options.
See section Requirements for the report administration (Page 54).
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 53
Administering the P&ID data flow (attribute synchronization)
9.3 Administering the data flow manager
Requirement
● You are familiar with the overview of the administration.
See section Overview of the administration of the Data Flow Manager (Page 53).
EnableVSUI2
The option script of the report template for P&ID contains the "EnableVSUI2 = TRUE" variable.
If the value is set to "True", the properties tree is displayed automatically when you open the
report.
You can find additional information on the attribute filters in the properties tree in the
"Administration" manual, keyword "Preparing attribute filters".
Requirement
● You are familiar with the overview of the administration.
See section Overview of the administration of the Data Flow Manager (Page 53).
P&ID Administration
54 Operating Manual, 03/2020 V 10.3.3
Administering the P&ID data flow (attribute synchronization)
9.3 Administering the data flow manager
Procedure
1. Open the base project.
2. Select the following standard table:
"Standard tables > Y10 > M22 > A10 > Y10M22N00013 General rules for data flow break"
3. Edit the standard table according to the following scheme:
– "Name" column: Unique string.
Recommendation: Use the iDB-compliant enumeration [A10, A20, ...]
– "Description of the break attribute" column For free use.
Recommendation: Enter the "Description" property of the attribute here.
– "Nested name of the break attribute" column: Identification of the attribute according to
the scheme "Tab name.Attribute name".
– "Classifications of break objects" column: You use this information to determine which
objects are searched and used for the attribute. The classification can be found in the
properties of the base objects in the "Classification" tab, "Hierarchical classification" field.
If each classification is valid, enter the asterisk "*" as a wildcard.
Multiple classifications are separated by semicolons without spaces.
Effect
The Data Flow Manager breaks the data flow for the identified attribute if the target object has
the specified classification.
Requirement
● You are familiar with the overview of the administration.
See section Overview of the administration of the Data Flow Manager (Page 53).
Base objects
Note
Synonyms
For reasons of legibility, the following pairs of terms are used synonymously in this Chapter:
● Data flow break flag / data break flag
● Data flow break object / data break object
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 55
Administering the P&ID data flow (attribute synchronization)
9.3 Administering the data flow manager
Requirement
● You are familiar with the overview of the administration.
See section Overview of the administration of the Data Flow Manager (Page 53).
P&ID Administration
56 Operating Manual, 03/2020 V 10.3.3
Administering the P&ID data flow (attribute synchronization)
9.4 Administering the data flow via static attributes (UpdateConnected)
Procedure
1. Open the base project.
2. Select the following standard table:
"Standard tables > Y10 > M22 > A10 > Y10M22N00014 Labels for data flow break attribute"
3. Edit the standard table according to the following scheme:
– "Name" column: Unique string.
Recommendation: Use the iDB-compliant enumeration [A10, A20, ...]
– "Description of the break attribute" column For free use.
Recommendation: Enter the "Description" property of the attribute here.
– "Nested name of the break attribute" column: Identification of the attribute according to
the scheme "Tab name.Attribute name".
– "Indicator" column: This string is displayed in the flag.
Effect
1. The standard table is evaluated when data break flags or data break objects are used.
You can find more information on this topic in the "P&ID Operation" manual, keyword "Using
data break flags and data break objects".
2. COMOS checks whether there is an entry in the standard table above for each affected
VSUI attribute.
3. COMOS checks whether an attribute is set for the data flow break in the "Data Flow
Manager: Break attributes" window.
4. If a data flow break is set, an additional diamond is created and the text in "Indicator" column
is displayed in the diamond.
5. If a data flow break is canceled, the diamond is hidden again.
9.4.1 Introduction
Requirement
● You are using the synchronization tool attribute "Refresh components".
See chapter Select attribute synchronization tool (Page 53).
Objective
Perform attribute changes via static links manually and individually.
The "UpdateConnected" function automates attribute changes based on static links and also
offers the option to influence updating. The passing of attributes to connected components is
conducted in one direction until it is ended by stop criteria.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 57
Administering the P&ID data flow (attribute synchronization)
9.4 Administering the data flow via static attributes (UpdateConnected)
You can find additional information on this topic in the "P&ID Operation" manual, keyword "Data
flow between P&ID objects".
Updating objects
The "UpdateConnected" function updates all the connected objects starting from a P&ID start
object.
The "UpdateConnected" function is triggered in the following cases:
● Editing of a P&ID object in the properties
● Editing of a P&ID object in the properties tree
You can specify that the properties tree should be displayed automatically when you open
a P&ID. To do this, set the EnableVSUI2 = True report option in the report template.
You can find additional information on the properties tree in the "Administration" manual,
keyword "Functions for the options script".
● Special case: Properties in the toolbar
If you set the EnableVSUI2 = False report option in the report template, the attributes
are displayed in the toolbar and not in the properties tree. When you edit the attributes in the
toolbar of the P&ID, COMOS updates the connections of valves only if you assign the script
"GetConnectorSpecification" to the valve.
The attributes in the toolbar are only available if the properties tree is hidden.
You can find more information about this script under Configuring how attribute families are
handled (Page 60).
Additional information
The "UpdateConnected" function calls up the "Update devices" window. You can find more
information on this topic in the "P&ID user" manual, keyword "Updating connected components
and pipe sections".
P&ID Administration
58 Operating Manual, 03/2020 V 10.3.3
Administering the P&ID data flow (attribute synchronization)
9.4 Administering the data flow via static attributes (UpdateConnected)
● If the object of the counter connection has the "GetConnectorSpecification" script block, this
script block is executed. All objects that have attributes from an attribute family have to
implement this script block.
● Attributes from an attribute family further serve as a stop criteria. Their value is only
forwarded if the object implements the "GetConnectorSpecification" script block.
See also section Configuring how attribute families are handled (Page 60).
● If the object of the counter connection does not have this script block, the search looks for
the source attribute specified for the object in the "Attribute" field, and its value is written to
the target attribute.
● If it is not possible to forward a value (because the attribute on the connected object does
not exist, for example, or because the attribute is not linked), the data flow for this attribute
is stopped at this level.
● If key attributes for pipe spec mapping were updated using the "UpdateConnected" function,
the user has the option to start pipe spec mapping once the data has been forwarded.
Requirement
The link is set up in the base data.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 59
Administering the P&ID data flow (attribute synchronization)
9.4 Administering the data flow via static attributes (UpdateConnected)
Procedure
Data transfer is implemented using the COMOS attribute link method. To implement data
transfer, you must proceed as follows to configure all attributes on P&ID components that are
updated through data flow:
1. Open the properties of the attribute.
2. Select the "Link" tab.
3. Select "By connector" from the "Link type" list.
4. From the "Connector name" list, select the name of one or more connectors which transfers
the attribute value to the component.
5. Enter the NestedName of the required attribute in the "Attribute" field.
Example: Attribute = "Y00T00003.Y00A00744"
If the attribute value can be linked to the component by a number of connectors, use
commas to separate each of them.
6. Select "Static" from the "Value" control group.
7. Click "OK" to save your inputs and close the dialog window.
Example
Valve: Attribute "Y00T00003.Y00A00744 Nominal diameter (DN)",
link type = "By connection", value = "Static",
Connector name = "DI1,DO1", Attribute = "Y00T00003.Y00A00744"
The valve is added to a the pipe section. The nominal diameter of the pipe changes, thereby
calling the "UpdateConnected" function. Regardless of whether the update is performed via the
valve input or output, the value entered for the pipe section in the "Nominal diameter (DN)"
attribute from the nominal diameter attribute of the valve.
P&ID Administration
60 Operating Manual, 03/2020 V 10.3.3
Administering the P&ID data flow (attribute synchronization)
9.4 Administering the data flow via static attributes (UpdateConnected)
Name GetConnectorSpecification
Parameter: Device:
Owner of the connector via which the attribute arrives at the component.
ConnectorName:
The name of the connector via which the attribute value arrives at the component (= counter connection of
the component which is to be updated).
SpecName:
Attribute name in the link.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 61
Administering the P&ID data flow (attribute synchronization)
9.4 Administering the data flow via static attributes (UpdateConnected)
Example: GetConnectorSpecification for "@30 > M00 > A50 > A10 > A30 > A10 > A20
> A10 > A10 General 3-way valve"
Set GetConnectorSpecification =
Project.Workset.Lib.CallScriptLib("@20|A80|M22|A10|M22S00002",_
"GetConnectorLinkedAttribute3Way", Device, ConnectorName, SpecName,
objThisDev)
You can find additional information on this topic in the "Administration" manual, keyword
"GetConnectorSpecification (Device, ConnectorName, SpecName)".
Standard call
This call checks all attributes:
Workset.Lib.RI.UpdateConnected ThisObj
Alternative calls
This call checks all attributes:
Set CInst = CreateObject("ComosPIDUpdate.Lib")
CInst.PIDUpdate. UpdateConnected StartDev, ""
P&ID Administration
62 Operating Manual, 03/2020 V 10.3.3
Administering the P&ID data flow (attribute synchronization)
9.4 Administering the data flow via static attributes (UpdateConnected)
This call only checks the attributes for which you have specified their NestedName:
Set CInst = CreateObject("ComosPIDUpdate.Lib")
CInst.PIDUpdate. UpdateConnected StartDev, "<NestedName
A>;<NestedName B>"
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 63
Administering the P&ID data flow (attribute synchronization)
9.4 Administering the data flow via static attributes (UpdateConnected)
P&ID Administration
64 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports 10
10.1 Using and administering the context menu of the P&ID report
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 65
Administering P&ID reports
10.1 Using and administering the context menu of the P&ID report
P&ID Administration
66 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports
10.2 Administering Copy / Cut / Paste
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 67
Administering P&ID reports
10.2 Administering Copy / Cut / Paste
If an object is placed on a pipe when pasted, the pipe is separated according to the pipe cut
mode of the object.
If the component is to be pasted parallel to the connected pipe and the pipe is located in a
category, a search is made for a category located in parallel into which the component can be
sorted.
See also
Scheme for copying / cutting / pasting at pipes (Page 68)
Requirement
● You are familiar with the delimitation.
See chapter Scope of the chapter (Page 67).
P&ID Administration
68 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports
10.2 Administering Copy / Cut / Paste
Scheme
&3 &RPSRQHQW
<$RSWLRQ 6RUWSDUDOOHOWRWKHGLVFRQ
,QVHUWFXWRXW&3 QHFWHGSLSHVHJPHQW
,VWKH&3FRQQHFWHGWRDSLSHGXULQJSDVWLQJ"&RQQHFW
VFULSWRIWKHSLSHLVFDOOHG
1R <HV
&DOOVFRQQHFWVFULSW
6HW'HYLFH2ZEHU%\&RQQHFWRU
"
1R <HV
<$RSWLRQDFWLYDWHG"
1R <HV
"SetDeviceOwnerByConnector" script
This script determines where a pipe separating component is inserting:
● For components that separate piping sections: Next to the connected pipe object
● For components that separate piping segments: Under to the connected pipe object
Pipe separation components are moved to the same unit structure in which the pipe is located.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 69
Administering P&ID reports
10.2 Administering Copy / Cut / Paste
1HZFRS\PRYH
7DUJHWLVSLSH &RS\DVSHUSDVWH
SLSH&RQQHFWFDOOHG" PRGH (QG
1R
&RQQHFWFDOOV &RQQHFWFDOOV
<HV 6HW'HYLFH2ZQHU%\ <HV 6HW'HYLFH2ZQHU%\
&RQQHFWRU" &RQQHFWRU"
P&ID Administration
70 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports
10.2 Administering Copy / Cut / Paste
1R
/D\FRPSRQHQW
<$ 3LSHFXWPRGH &XWVSLSH" SDUDOOHOWRWKH
<HV DYDLODEOH" <HV 1R VHSDUDWHG
RSWLRQDFWLYH
HOHPHQW
1R <HV
0RYHFRPSRQHQW
6RUWLQJLQ &RPSRQHQWILWV WRWKH
FDWHJRULHV <HV RQHRI <HV FDWHJRU\IROGHU (QG
DFWLYDWHG" WKHFDWHJRULHV"
&RPSRQHQWLV
1R 1R FUHDWHGXQGHUWKH
GRFXPHQW
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 71
Administering P&ID reports
10.2 Administering Copy / Cut / Paste
You can prevent the automatic classification of components. See also section Disabling
automatic classification of components (Page 13).
Move
Components are moved automatically in the following cases:
● The component is located below the P&ID.
● The component is connected to a pipe.
● The pipe is assigned to a unit.
Example: A fitting is loosely placed on the P&ID. The fitting is later incorporated into a pipe.
See also section Scope of the chapter (Page 67).
See also
Interaction of copying/pasting with SortNewObjectsInCategories (Page 72)
Example 1
Initial situation:
● A subunit with P&ID and categories has been created.
● A pump and its connected pipe are located underneath the main unit. They have been
placed on the P&ID.
Action:
The pump and one of its connected pipe sections is copied to the P&ID. They are pasted using
the command "Paste > Below document". The copies are not connected to another pipe when
they are pasted.
● Result 1: SortNewObjectsInCategories = FALSE
Since the copied objects were not connected to a pipe when they were pasted, they are
pasted in the Navigator according to the paste mode – i.e. in the Navigator under the P&ID.
● Result 2: SortNewObjectsInCategories = TRUE
SortNewObjectsInCategories overwrites the paste mode – the pasted objects are
sorted in the Navigator into the category folders located parallel to the P&ID.
P&ID Administration
72 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports
10.2 Administering Copy / Cut / Paste
Example 2
Initial situation:
● A subunit with P&ID and categories has been created.
● A valve without the activated "Sort parallel to the disconnected pipe segment" option that is
not connected is located underneath the main unit.
● A pipe with a pipe section is located below the main unit.
● All objects have been placed on the P&ID.
Action:
The valve is copied and pasted using the command "Paste > Below document". It is placed on
the pipe section when it is pasted.
● Result 1: SortNewObjectsInCategories = FALSE
Because the Connect script of the pipe section is called and the valve is not a fitting, it is
pasted in the Navigator parallel to the connected pipe.
● Result 2: SortNewObjectsInCategories = TRUE
The valve is sorted into a category underneath the subunit. The pipe, which was not part of
the paste set, remains underneath the main unit.
Example 3
Initial situation:
● A subunit with P&ID and categories has been created.
● A valve that has a fitting and has not been connected is located underneath the main unit.
● A pipe with a pipe section is located below the main unit.
● All objects have been placed on the P&ID.
Action:
The valve is copied and pasted using the command "Paste > Below document". It is placed on
the pipe section when it is pasted.
Because the Connect script is called, the valve is a fitting and the
SetDeviceOwnerByConnector call is in the script, it is sorted below the connected pipe
regardless of the result in the Navigator.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 73
Administering P&ID reports
10.2 Administering Copy / Cut / Paste
See also
"System data" tab (Page 164)
Dependencies when copying and pasting objects (Page 70)
Example 1
Initial situation:
● A subunit with P&ID and categories has been created.
● A pump and its connected pipes are located underneath the main unit. There is an additional
pipe underneath the main unit.
● All objects have been placed on the P&ID.
Action:
The pump is cut and pasted using the command "Paste > Below document". It is placed on the
second pipe when it is pasted.
Pipe cut mode: "Pipe separative"
● Result 1: SortNewObjectsInCategories = TRUE
The user is prompted to decide which pipe is to be retained. The redundant pipe is deleted,
together with its pipe section. The pump is sorted into a category that is located parallel to
the P&ID.
When placed on the second pipe, the pipe is separated into two pipes. The new pipe and its
pipe section are created parallel to the old pipe, i.e. below the main unit.
● Result 2: SortNewObjectsInCategories = FALSE
The position of the pump in the Navigator remains the same.
P&ID Administration
74 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports
10.2 Administering Copy / Cut / Paste
Example 2
Initial situation:
● A subunit with P&ID and categories has been created.
● Two pipes are located underneath the main unit. A valve is located underneath pipe A. The
"Sort parallel to the disconnected pipe branch" option is enabled at the valve in the "System
data". It is connected to the pipe segments of pipe A.
● All objects have been placed on the P&ID.
Action:
The valve is cut from pipe A and pasted using the command "Paste > Below document". It is
placed on pipe B when it is pasted.
The second pipe segment below pipe A is deleted as a result of cutting the valve. Pipe B is
segmented when the valve is pasted. Because the valve is connected with the pipe and is a
fitting, it is sorted parallel to the pipe segment that it is connected to, that is, below the pipe,
regardless of the result.
Example 3
Initial situation:
● Subunit with P&ID and categories.
● Two pipes are located underneath the main unit. Pipe A is located underneath the main unit.
A valve is located underneath the pipe. The valve is a fitting and is connected with the pipe
segments of the pipe.
● All objects have been placed on the P&ID.
Action:
The valve and one of its connected pipe segments, pipe segment B, is cut and pasted using the
command "Paste > Below document". The objects are not connected with another pipe when
they are pasted.
● Result 1: SortNewObjectsInCategories = TRUE
The valve and pipe segment B are deleted from the structure below pipe A. Then they are
sorted into the categories underneath the subunit. Because the pipe segment must be
located below a correct pipe structure, the pipes and the pipe section are copied beforehand
and pasted as the owners of pipe segment B into the category for pipes.
● Result 2: SortNewObjectsInCategories = FALSE
The valve and pipe segment B are deleted from the structure below pipe A. In the same way
as above, the pipe and the pipe section are also copied; they are pasted as the owner of pipe
segment B according to the paste mode, i.e. below the document.
See also
"System data" tab (Page 164)
Scope of the chapter (Page 67)
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 75
Administering P&ID reports
10.3 Administering Create new
Procedure
To automatically create the complete hierarchical structure from a value up to the position when
copying, proceed as follows:
1. Open the base object of a valve.
2. Open the "Attributes > System data" tab.
3. Go to design mode.
4. In the "@40" node of the "Base objects" tab, search for the attribute "Y00A04533 Copy
structure up to position".
5. Drag&drop the attribute into the "System data" tab.
6. Change the display type to "Checkbox" in the properties of the attribute.
7. Change to working mode.
8. Enable the option.
9. Confirm your entries.
You can find more information on this topic in the "P&ID Operation" manual, keyword "Special
features of functions and positions".
P&ID Administration
76 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports
10.4 Administering hierarchies and references
Overview
The entries in the drop-down list of the "Assign object" tool come from two sources:
● Permanently available entries ("hard-coded")
● Entries that were entered in the options script of the report template
AddAssignObjectMode(0) = strAssignObjectMode0
AddAssignObjectMode(1) = strAssignObjectMode1
AddAssignObjectMode(2) = strAssignObjectMode2
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 77
Administering P&ID reports
10.6 Administration of report templates
Note
Unopened P&IDs
This happens even if the P&ID was closed when the symbol change took place.
Such a symbol change can take place as the result of a change in an attribute. When the
attribute changes its value, a symbol adjusts itself accordingly on the P&ID.
10.6.1 Automatically sorting objects into categories when placing them on the P&ID
Categories
You can find information on this topic in the "P&ID Operation" manual, keyword "Categories".
Procedure
1. Open a report template.
2. Select the "Options" command in the context menu.
The options script opens.
3. Search for the following script option:
SortNewObjectsInCategories
You can find additional information on this topic in the "Administration" manual, keyword
"SortNewObjectsInCategories".
4. Enter the value True for the script option.
Result
Components are automatically sorted into categories when they are placed on the P&ID.
You can find more information on this topic in the "P&ID Operation" manual, keyword "Sorting
components into the categories".
P&ID Administration
78 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports
10.6 Administration of report templates
Procedure
1. Open the "Script" tab of a base object for which you would like to expand the context menu.
2. Open the UserScriptBlock1.
– To expand the context menu for the "M22_P2" drawing type, insert the following script
option:
AddToGraficalParameterM22_P2
– To expand the context menu for the "M22_P1" drawing type, insert the following script
option:
AddToGraficalParameterM22_P1
Result
Use these script options to define attributes to the standard tables of which additional symbols
have been assigned. This means that you can use the context menu to show or hide additional
P&ID symbols that define the properties of the object more precisely.
Example
Script option for a valve:
Dim AddToGraficalParameterM22_P1(3)
'### Driveb
AddToGraficalParameterM22_P1(0) = "Y00T00037.Y00A00457"
'### Label
AddToGraficalParameterM22_P1(2) = "Y00T00039.Y00A00176"
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 79
Administering P&ID reports
10.7 Editing the properties of the document object
Requirement
● You are familiar with the overview of the tabs of the P&ID report.
See chapter Editing the properties of the document object (Page 80).
P&ID Administration
80 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports
10.7 Editing the properties of the document object
Procedure
1. Open the properties of a P&ID report template.
2. Select the "Attributes > System data" tab.
3. In the "Link to base object for pipe sections" field, define the base object to use to create the
connections that are drawn with the "Connection" tool.
Note
The value set here overwrites the setting from the project properties, "Process
development" category, "Base object for pipe section" field. See also chapter Specifying
references in the project properties (Page 18).
Result:
In the database, the options script of the report template is set up so that the variable
CObjectFullNameForPipe reads the base object that is input here. See also chapter
CObjectFullNameForPipe (String) (Page 180).
This allows the user to determine the base object for pipe sections easily via the properties
window.
Requirement
● You are familiar with the overview of the tabs of the P&ID report.
See chapter Editing the properties of the document object (Page 80).
Terminology
● Designation in the cDB: Apparatus head or apparatus bar
Designation in the iDB: "Equipment list"
● Designation in the cDB: Material flow bar
Designation in the iDB: "Pipe list"
Procedure
1. Activate the "Display equipment bar" or "Display piping list".
2. Edit the "Row headers" list
If you leave fields in these lists empty, less information is displayed correspondingly on the
P&ID.
This procedure replaces the selection between a detailed version and a brief summary in
older COMOS versions.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 81
Administering P&ID reports
10.8 Administering symbols
Requirement
A P&ID has been created.
Procedure
1. Select the command "Report template > Open report template" in the context menu of the
P&ID in the Navigator.
The report template opens.
2. Select the "Options" command from the context menu of the report template's working area.
The "Options" window opens.
3. Add a line at the end of the script, in which you assign the desired value to
the ConnectorRadius property.
Example: ConnectorRadius = 5
4. Close the dialog box by clicking "OK" and save the report template.
Procedure
The standard pipe label is entered as text symbol:
1. Open the base project.
2. Open the properties of the pipe section.
3. Select the "Symbols" tab.
4. In the list select the entry with the matching drawing type.
5. Click the "Show symbol script" button in the "Text" option group.
6. Edit the symbol script.
In the standard iDB, the pipe label provides the following information:
– AliasFullLabel of the corresponding pipe
– Nominal diameter according to attribute Y00A00744
– Nominal pressure according to attribute Y00A00746
– Pipe spec according to attribute Y00A00052
P&ID Administration
82 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports
10.8 Administering symbols
Objective
The user can show and hide end symbols on a P&ID. You can find more information on this
topic in the "P&ID Operation" manual, keyword "Showing and hiding additional pipe symbols".
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 83
Administering P&ID reports
10.8 Administering symbols
Additional information
● You can find more information on this topic in the "P&ID Operation" manual, keyword
"Presenting pipe symbols".
● Also note the additional administration options using the tab "Document options" of the
report. See chapter Editing the properties of the document object (Page 80).
Purpose
If a pipe component is placed on two different reports, the corresponding pipe component is not
duplicated, but only a sheet reference is created. The sheet reference is not relevant for the
component list.
For application, see chapter AUTOHOTSPOT.
P&ID Administration
84 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports
10.8 Administering symbols
For sheet references, the segment names determine the order of the segments. Example:
Below a pipe there are the segments "Seg1", "Seg2" and "Seg4". The following applies if you
are working according to the COMOS standard:
● "Seg1" is connected to "Seg2". The medium flows from "Seg1" to "Seg2".
● "Seg2" is not connected to "Seg4". There is a gap between "Seg2" and "Seg4".
Old search logic:
● A half-open segment was found on the P&ID report. Example: "Seg4"
● According to the segment name, any other placed segment of the pipe is searched
backwards. If "Seg3" is found, a sheet reference to this segment is generated.
● If "Seg3" is not found, but "Seg2" is, a sheet reference to this segment is generated.
New search logic
● A half-open segment was found on the P&ID report. Example: "Seg4"
● The predecessor segment is searched for according to the segment name. If "Seg3" is
found, a sheet reference to this segment is generated.
● If "Seg3" is not found, no sheet reference is generated.
See also
Scripting a page reference for cross-page pipes (Page 19)
Procedure
To activate rotation correction for PFD symbols when opening a P&ID, proceed as follows:
1. Click the "Extra > Object debugger" menu.
The object debugger opens.
2. Drag&drop the project from the Navigator into the "Object A" field.
3. Enter the following in the "Script" field:
private bool IsRotationIncorrect()
{
// TRUE, if the following entry has been entered by the PT user via
the script debugger !!!
// This flag should be removed by the user only by restarting the
application !!!
return (Singletons.Globals.ItemExist("CorrectRIRotation") != 0);
}
4. Click on the "Execute" button.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 85
Administering P&ID reports
10.8 Administering symbols
Result
When you open a P&ID, rotation correction is applied for PFD symbols. Once you terminate
COMOS, this setting is not applied the next time you start the program.
Procedure
To mount a scaling correction for PFD/P&ID symbols when loading a P&ID symbol script,
proceed as follows:
1. Click the "Extra > Object debugger" menu.
The object debugger opens.
2. Drag&drop the project from the Navigator into the "Object A" field.
3. Enter the following line in the "Script" field:
A.workset.globals.RiConversionScale = <Scaling value>
4. Click on the "Execute" button.
Result
When you load a P&ID symbol script, scaling correction is applied for PFD/P&ID symbols. Once
you terminate COMOS, this setting is not applied the next time you start the program.
Note
The following procedure will trigger a script error:
P&ID Administration
86 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports
10.9 Displaying coordinates of components
Using "..|" (or multiple use of this string) to move up in the owner structure and then move
down again in the child objects until the actual symbol is reached again.
In other words: Navigating up and then back to the symbol itself is not supported. There is also
no application for such a procedure because the actual symbol object can be used immediately
in the script.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 87
Administering P&ID reports
10.9 Displaying coordinates of components
Procedure
To display the coordinates of page references, proceed as follows:
1. In the base data, open a standard table under the node "Y10 > M20 > A10 > Y10M20N00010
Page references".
2. Open the context menu of the column header for the drawing type.
3. Under "Select drawing type", select a drawing type on which you want to display the
coordinates for page references.
Possible drawing types:
– M21_P1 - (PFD)
– M22_P1 - (P&ID (ISO 10628))
– M22_P2 – (P&ID (DIN 2481))
4. Click "Show symbol script" in the context menu of the page reference input.
5. Copy the following code to the symbol script.
See also chapter Symbol script for page references (input) (Page 88).
6. Open the symbol script of the page reference output.
7. Copy the same code to the symbol script that you have used for the input.
Replace the entry Item("DI1") with Item("DO1") in the following line:
Set Connector = Param.Connectors ().Item("DI1")
Result
For page references, the coordinates of the other reference partner are displayed in a text flag.
P&ID Administration
88 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports
10.10 Search functions for P&ID
Else
End If
End If
End Function
10.10.1 GetDeviceConnectedToPipe
Use
This function is called by default in the following script: "@20 > A80 > M22 > A10 > M22S00004
CheckConnection"
The function gets a component that is connected to the specified connector of a pipe object.
GetDeviceConnectedToPipe(ByVal Pipe As IComosDDevice, ByVal
StrConnectorName As String, ByVal SearchMode As Integer) As
IComosDDevice
The following table shows the meaning of the parameters used:
Parameter Description
Pipe Pipe object for which the search is conducted.
StrConnectorName Specifies whether to search for a connected com‐
ponent at the input or output of a pipe object.
DI1: Input of the pipe object
DO1: Output of the pipe object
SearchMode Number of the desired search mode.
COMOS provides three search modes.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 89
Administering P&ID reports
10.10 Search functions for P&ID
See also
Search modes (Page 90)
10.10.2 GetConnectorOfDeviceConnectedToPipe
Use
This function is called by default in no script: You can enter the call in a script yourself.
The function gets the component connector that is connected to the specified connector of a
pipe object.
GetConnectorOfDeviceConnectedToPipe (ByVal Pipe As IComosDDevice,
ByVal StrConnectorName As String, ByVal SearchMode As Integer) As
IComosDDevice
The following table shows the meaning of the parameters used:
Parameter Description
Pipe Pipe object for which the search is conducted.
StrConnectorName Specifies whether to search for a connected com‐
ponent at the input or output of a pipe object.
DI1: Input of the pipe object
DO1: Output of the pipe object
SearchMode Number of the desired search mode.
COMOS provides three search modes.
See also
Search modes (Page 90)
P&ID Administration
90 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports
10.10 Search functions for P&ID
COMOS searches in all three search modes for the components that are connected to the input
or output of a pipe object.
● Search mode 1:
COMOS determines the components that are connected to the input or the output of a
simple pipe section.
● Search mode 2:
COMOS determines the components that are connected to the input or the output of a main
pipe section.
● Search mode 3:
COMOS determines the main equipment connected to the input or the output of a main pipe
section.
The following table shows the pipe objects that can be passed in a given search mode.
The following provides an example of how the search mode is set by calling
"GetDeviceConnectedToPipe".
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 91
Administering P&ID reports
10.10 Search functions for P&ID
Result
The corresponding components are determined depending on the search mode. You connect
these components to a pipe section. The name of the component is entered in the following
fields of the "Attributes > P&IC options" tab section for the pipe section:
● "From equipment:"
● "To equipment:"
Example
This example shows the two search functions for search mode 1.
P&ID Administration
92 Operating Manual, 03/2020 V 10.3.3
Administering P&ID reports
10.10 Search functions for P&ID
The following graphic shows an example of the parameters that are specified for the search
function.
3LSHB%UDQFKB
Function calls:
● GetDeviceConnectedToPipe(Pipe_Branch_02, "DI1",1)
Search result: Component "V002"
● GetConnectorOfDeviceConnectedToPipe(Pipe_Branch_02, "DI1",1)
Search result: Component connector "DO1" of component "V002".
See also
GetDeviceConnectedToPipe (Page 89)
GetConnectorOfDeviceConnectedToPipe (Page 90)
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 93
Administering P&ID reports
10.10 Search functions for P&ID
P&ID Administration
94 Operating Manual, 03/2020 V 10.3.3
P&ID functions for Graybox and engineering task 11
11.1 Overview for administration of the "Graybox" function
Requirement
● You are familiar with the definition and limitation for placed documents.
You can find additional information on this topic in the "Administration" manual, keyword
"Definition and limitation for placed documents".
Technical overview
When solving a graybox, the associated COMOS document is opened in the background,
all ReportItems are cut and pasted into the main document.
● ReportItems are identified by means of LID. However, this LID is only unique within a
report. Therefore: If necessary, the ReportItems receive a new LID in the main document.
● The COMOS document of the graybox is deleted and therefore also its crp file.
● Pipe segmentation through individual components
● Representation of pipe breaks
● Objects under the source report are moved under the target report during dissolution.
● A pipe is connected to another pipe by means of a dynamic connector.
Requirement: One end of a pipe meets exactly one other pipe.
● Connect two components (e.g. pump and valve) if these are placed so that the connectors
are located on top of each other.
This function is already available within two grayboxes prior to dissolution.
● Inconsistency detection when connecting a pipe with incorrect flow direction
● Customize search strings
● Fixdependencies for objects that have connectors and can be connected (pipes/
components)
Implementation
● Use of grayboxes on the P&ID report
You can find more information on this topic in the "P&ID operation" manual, keyword "Using
a graybox on a P&ID".
● Preassign and disable "Select connection type" window
See chapter Preassign and disable "Select connection type" window (Page 96).
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 95
P&ID functions for Graybox and engineering task
11.2 Preassign and disable "Select connection type" window
Similar COMOS functions that are not dissolved with "Resolve graybox"
● Connecting a pipe to a vessel over a nozzle or a dynamic connector
● No data forwarding over Updateconnected
● Pipe segmentation via a component group
Requirement
● You are familiar with the technical overview.
See chapter Overview for administration of the "Graybox" function (Page 95).
P&ID Administration
96 Operating Manual, 03/2020 V 10.3.3
P&ID functions for Graybox and engineering task
11.3 Use "A20 Placing and dissolving graybox P&ID"
Requirement
● You are familiar with the terminology regarding "Placeable documents".
Background: A graybox is created by using an interactive report in an interactive report. You
can find additional information on the term "Assemblies" or "Graybox" in the "Administration"
manual, keyword "Definition and limitation for placed documents".
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 97
P&ID functions for Graybox and engineering task
11.3 Use "A20 Placing and dissolving graybox P&ID"
Note
Using "A20 Placing and dissolving graybox P&ID" ensures the undoing of an engineering task.
When grayboxes are used in combination with an engineering task on P&ID reports, complex
changes can be triggered. The undoing of such an engineering task is therefore rather time-
consuming and is controlled by the hidden template pointer ("@TplM"). The engineering task
"A20 Placing and dissolving graybox P&ID" ensures that undoing takes place automatically.
● Recommendation: Use only the engineering task "A20 Placing and dissolving graybox
P&ID" for P&ID reports.
If you are using the engineering task "B60 Own script" or "B30 Dissolve graybox", you must
implement the undoing yourself. Loss of data is possible in case of a faulty implementation.
Note
Manual changes interfere with undoing an engineering task.
Undoing requires that the content of a graybox is not changed after it has been dissolved. This
mainly affects:
● No disconnection of pipes
● No change to the flow direction
● No deletion or installation of components
P&ID Administration
98 Operating Manual, 03/2020 V 10.3.3
P&ID functions for Graybox and engineering task
11.3 Use "A20 Placing and dissolving graybox P&ID"
Note
No undoing from a data-specific point of view
The undoing of engineering tasks refers to the restoration of the object structures on the
engineering side. The restoration does not mean that the original datasets are restored again
in the database. You can find more information on this topic in the "Modular engineering"
manual, keyword "Objective of the engineering tasks".
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 99
P&ID functions for Graybox and engineering task
11.3 Use "A20 Placing and dissolving graybox P&ID"
P&ID Administration
100 Operating Manual, 03/2020 V 10.3.3
Administering global symbol colors (UseColorSets) 12
12.1 Aim and overview
You can specify rules with which the user can change the color of the report objects on an P&ID
flowchart in bulk. You can find more information on this topic in the "P&ID Operation" manual,
keyword "Using bulk color setting of the symbols".
Note
Default colors are not changed.
Only the standard color (delivery state: black) is changed. Blue, pink and orange are retained.
You can find more information on this topic in the "P&ID Operation" manual, keyword "Default
colors in P&ID".
Requirement
● You are familiar with the aim and the overview.
See chapter Aim and overview (Page 101).
Procedure
1. Open the base project.
2. Open the following node: "@20 > A70 > Y10 > M00 > A20 > M22_P1 R&I (ISO 10628)".
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 101
Administering global symbol colors (UseColorSets)
12.2 Administering queries for color configuration
P&ID Administration
102 Operating Manual, 03/2020 V 10.3.3
Administering global symbol colors (UseColorSets)
12.4 Administering "ColorSets" in the report template
Requirement
● You are familiar with the aim and the overview.
See chapter Aim and overview (Page 101).
Procedure
1. Select the node "@20 > A70 > Y10 > M00 > A20 > M22_P1 R&I (ISO 10628)".
2. Open the properties.
3. Select the "Attributes > Color selection" tab.
4. In working mode, click the "Select collision color" button and select a color.
5. Confirm your entries.
If multiple color settings are valid for an object at one time, the collision color applies.
Requirement
● You are familiar with the aim and the overview.
See chapter Aim and overview (Page 101).
Procedure
1. Open the report template for the P&ID for which you wish to activate the mode.
2. Right-click on the working area of the report template.
The context menu opens.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 103
Administering global symbol colors (UseColorSets)
12.5 Administering properties of the engineering document
Requirement
● You are familiar with the aim and the overview.
See chapter Aim and overview (Page 101).
Procedure
1. Change to the engineering project.
2. Open the properties of the engineering document.
3. Select the "Attributes > Document options" tab.
4. Select the option "Activate color settings".
The context menu "Select color settings..." is visible in the report.
A legend of the colors appears in the lower right corner of the report in the document footer. See
chapter Row report to represent the legend (Page 105).
P&ID Administration
104 Operating Manual, 03/2020 V 10.3.3
Administering global symbol colors (UseColorSets)
12.6 Row report to represent the legend
Requirement
● You are familiar with the aim and the overview.
See chapter Aim and overview (Page 101).
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 105
Administering global symbol colors (UseColorSets)
12.6 Row report to represent the legend
P&ID Administration
106 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components 13
13.1 Administering text recognition in AutoCAD drawings
Objective
The AutoCAD text recognition function is a script-based interface.
The function places an AutoCAD file on a report. The AutoCad file is visible as a background
image on the report. The coordinates of the text objects are identified in the AutoCAD file.
Invisible links are created on the report above the AutoCAD background image with the help of
these coordinates. This gives users the impression that it is possible to open a navigation menu
for a text of the placed AutoCAD file.
In the screenshot below the report is marked with (1).
The AutoCAD text recognition detects individual texts of an AutoCAD file as a concatenated
text block. The following elements are created for every concatenated text block:
● In the Navigator: An engineering object whose description includes the text of the text block.
This engineering object is called the text block object. In the screenshot below the text block
object is marked with (2).
● In the Navigator: An object in which the placement information for the recognized text block
is stored. The placement object in the navigator is called DocObj. In the figure below
the DocObj is marked with (3).
● On the report: A text block frame. This frame is called BoundingBox in this chapter. In the
following figure the BoundingBox is marked with (4).
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 107
Administering the import / export of plant components
13.1 Administering text recognition in AutoCAD drawings
● When you double-click DocObj, the report opens and zooms onto the BoundingBox.
● The context menu of the BoundingBox contains the context menu "Navigate > Object".
With this context menu you can navigate to the text block object:
As a result the AutoCAD text recognition function allows you the navigation between an object
in the navigator and a text in a placed AutoCAD file.
Implementation
See chapter Sequence of the AutoCad text recognition (Page 108).
Similar functions
You can find more information on AutoCAD import in the "Basic interfaces" manual, keyword
"Importing AutoCAD file (dwg, dxf) into an interactive report".
Requirement
● You are familiar with the overview of the AutoCad text recognition.
See chapter Overview of the AutoCAD text recognition (Page 107).
P&ID Administration
108 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.1 Administering text recognition in AutoCAD drawings
Terminology
To ensure that a term is unique, the designation in accordance with the interface is used with
AutoCAD terminology.
Examples:
● Designation according to German AutoCAD user interface: Block reference Designation
used here: Blockreference
● Designation according to German AutoCAD user interface: "Text". Designation used
here: AutoCADText
● Designation according to German AutoCAD user interface: "Attributes" (values of a block
reference) Designation used here: AttributeValue
Note
CleanUpDwgDxfFile can double the time needed for the import
In particular, dxf files require a lot of time to import since they are text-based. Importing a 100
MB dxf file can take several hours.
Using CleanUpDwgDxfFile can double the time needed for import.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 109
Administering the import / export of plant components
13.1 Administering text recognition in AutoCAD drawings
P&ID Administration
110 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.1 Administering text recognition in AutoCAD drawings
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 111
Administering the import / export of plant components
13.1 Administering text recognition in AutoCAD drawings
10.MText
A text block is created for every MText. It is irrelevant whether the MText contains a single-
line or multi-line TextValue.
11.IAcadAttributeReference
In the standard, there is no IAcadAttributeReference that is placed directly in the
AutoCAD file. Rather, IAcadAttributeReference is part of a Blockreference.
Technically speaking, however, free IAcadAttributeReference are possible. In this
case, the following applies: A text block is created for every IAcadAttributeReference.
12.A text block frame (BoundingBox) is generated for each text block on the report (Position
[4] in the figure.)
13.For every text block one text block object is created in the Navigator (Position [2] in the
figure):
– Name: Consecutive number
– Description: The summary of the values read from the AutoCAD file
(AttributeValue, TextValue). The values that are taken into consideration
depends on the generated text block.
14.A context menu "Navigation" is provided for the BoundingBox.
The navigation references the created text block object.
15.Optional: Moving the DocObj
The DocObj of the BoundingBox is located in the default under the report. The DocObj
objects store placing information. You can navigate to the report on which the engineering
object is placed via the context menu of the DocObj object. If one moves the DocObj under
the engineering objects, the DocObj can be used to move from the engineering object to the
text on the report.
You can find additional information on this topic in the "Operation" manual, keyword
"DocObj objects".
See also
Class documentation DwgDxfInterface (Page 114)
Requirement
● You are familiar with the overview of the AutoCad text recognition.
See chapter Overview of the AutoCAD text recognition (Page 107).
P&ID Administration
112 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.1 Administering text recognition in AutoCAD drawings
Systematic procedure
1. "Merge Block Text", "ConcatenationDelimiter", "Export Invisible Text",
"RecognizeMultiLineTexts", "Text distance factor X", "Text distance factor Y"
These attributes do not have a script and a feature. The attributes represent the setting
options in the DwgDxfInterface and are evaluated in the further course of the script.
If DwgDxfInterface is extended and contains new setting options, add corresponding
attributes as required. See chapter Class documentation DwgDxfInterface (Page 114) for
the setting options in DwgDxfInterface.
2. "Mapped base object", "Document Template", "Folder", "Document pointer"
The DwgDxfInterface function requires three details:
– The AutoCAD file.
– A COMOS engineering object as the starting point for a base object. The base object is
required to create the text block objects.
– A COMOS report on which the AutoCAD file is placed.
In which form these three specifications are determined and which additional specifications
are determined for further automation depends on the customer DB.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 113
Administering the import / export of plant components
13.1 Administering text recognition in AutoCAD drawings
3. The function is triggered via the "Create View" interface. The attribute of this button owns the
script with which all other attributes are sampled.
In this script the settings for DwgDxfInterface are set on the basis of the sampled
attribute values. Subsequently the AutoCAD text recognition is carried out
in DwgDxfInterface.
4. "AutoCAD Mapping" is not a component of the AutoCad text recognition.
This attribute is an extension of the application and serves to move the generated DocObj
to the existing planning objects. This allows existing engineering data to be assigned to
the BoundingBox objects on the AutoCAD file. As a result the user can navigate from the
engineering objects to the BoundingBox on the AutoCAD file.
Requirement
● You are familiar with the overview of the AutoCad text recognition.
See chapter Overview of the AutoCAD text recognition (Page 107).
Call
Namespace:
Set objDwgDxfInterface =
CreateObject("Siemens.Comos.DwgDxfInterface.ComWrapper")
Name of the dll:
Comos.AutoCadIntegrator.ComWrapper
P&ID Administration
114 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.1 Administering text recognition in AutoCAD drawings
Configuration
● objDwgDxfInterface.OpenReportAutomatically = true
Optional.
Default: True
Determines whether the report is opened automatically.
● objDwgDxfInterface.CsvFilename = "C:\text.csv"
Optional.
Default: Path specification and file name of the AutoCAD file with the file extension ".csv"
● objDwgDxfInterface.ExportTextsToCsv
Optional.
Is required if CsvFilename is set. Writes the output of the GetCsvTexts method into a csv
file whose file name was determined by means of the CsvFilename property.
● objDwgDxfInterface.DwgDxfFilename = a.FullFileName
Determines the AutoCad file to be evaluated.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 115
Administering the import / export of plant components
13.1 Administering text recognition in AutoCAD drawings
● objDwgDxfInterface.ConcatenateBlockTexts = true
Optional.
Default: True
Determines whether all the AttributeValues of a Blockreference are combined into one text
block.
● objDwgDxfInterface.ConcatenationDelimiter = "_"
Optional.
Default setting: "_"
Separators of individual texts in the collection of texts (Blockreference, AutoCADText).
● objDwgDxfInterface.ExportInvisibleAttributes = false
Optional.
Determines whether invisible AutoCAD attributes are considered.
● objDwgDxfInterface.ExportHeaderLine = false
Optional.
Support in troubleshooting.
Determines whether the column descriptions are to be included as the first row in the
semicolon-separated csv-file.
● objDwgDxfInterface.AutomaticallyRecognizeMultineTexts = true
Optional.
Determines whether the single-line AutoCADText elements (IAcadText) are recognized
by means of graphical assignment as a concatenated text block.
P&ID Administration
116 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.1 Administering text recognition in AutoCAD drawings
See also
Script example (Page 117)
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 117
Administering the import / export of plant components
13.1 Administering text recognition in AutoCAD drawings
P&ID Administration
118 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.1 Administering text recognition in AutoCAD drawings
'*** optional: switch to take the text height into account during
recognition on or off (default true)
objDwgDxfInterface.CompareTextHeights = true
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 119
Administering the import / export of plant components
13.2 Administering a Conval interface
Count =
objDwgDxfInterface.CreateComosObjectsByCsvLine(strCsvAllText,
b.CDevice, c)
Output "Created Devices: " & Count
Supported versions
COMOS supports the versions Conval 8 and Conval 9. COMOS supports the following
functions:
● Security valve dimensioning and pressure loss calculations
● Calculation of valve/pipe/vessel dimensions
● Wall thickness/substance data calculations
Control of Calcer
To transfer texts, use the following script:
P&ID Administration
120 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.3 Administering a Microstation import (dgn, pid)
calcer.cvcalculation.CalculationData.ParamByName("IDENTIFIER").text
= calcer.bobj.FullName + " " + calcer.bobj.Description
To transfer attribute values and units, use the following script:
calcer.copyval "","Y00T00041.Y00A01182","Qm", False ' volumeflow
True = Comos - Conval;
False = Conval - Comos;
To check the "Volumeflow" option in Conval, use the following script:
calcer.cvCalculation.CalculationData.paramByname("QmorQv").SwitchSta
te = 2 'volumeflow - Radio button in Conval is set
Application
When you open document with a Conval document type, Conval itself starts up with the default
settings. You can then input data in the usual way. When you close Conval, the data are
automatically transferred from Conval to COMOS.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 121
Administering the import / export of plant components
13.3 Administering a Microstation import (dgn, pid)
Introduction
Assign the DGN line types to the line types available for selection in COMOS on the "Line types"
tab of the "Options" window. You can usually use the operating system line types you selected
on the P&ID (using the context menu command "Options > Graphical properties").
Requirement
The "Options" window is open. See also section Configuration file "DGNImport1.xml"
(Page 121).
Procedure
1. Select the "Line types" tab.
2. Select the required line type from the "COMOS line types" table.
3. Select the required DGN line type from the "Used DGN line types" table.
Repeat steps one and two for each DGN line type to which you wish to assign a COMOS line
type. Multiple selection is not possible.
4. To assign the selected line types to one another, click the "<<Assign" button.
5. Select one of the following options:
– Click "Save" to save the settings in the existing configuration file.
– Click "Save As" to save the settings in a new configuration file. Select the required
directory. Enter a file name. Click "Save".
Result
Both line types are assigned to each other and added to the "Assigned line types" list. The
settings are written to the configuration file and saved as the default settings for DGN imports.
Introduction
Assign the DGN layers to the COMOS layers available in the drawing type currently in use on
the "Layers" tab of the "Options" window.
Requirement
The "Options" window is open. See also section Configuration file "DGNImport1.xml"
(Page 121).
P&ID Administration
122 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.3 Administering a Microstation import (dgn, pid)
Procedure
1. Select one or more DGN layers from the "Used DGN layers" table.
2. Select the required COMOS layer from the "Layers for the current symbol type" table.
3. To assign the selected layers to one another, click the "<<Assign" button.
4. Select one of the following options:
– Click "Save" to save the settings in the existing configuration file.
– Click "Save As" to save the settings in a new configuration file. Select the required
directory. Enter a file name. Click "Save".
Result
The layers are assigned to each other and added to the "Assigned layers" list. The settings are
written to the configuration file and saved as the default settings for DGN imports.
Introduction
Assign the DGN fonts to the selected Windows fonts on the "Fonts" tab of the "Options" window
Requirement
The "Options" window is open. See also section Configuration file "DGNImport1.xml"
(Page 121).
Procedure
1. Click the "..." button next to the "Path to the font resource files:" field.
The "Search folder" window opens.
2. Select the directory in which the DGN fonts are saved.
3. Click "OK".
You return to the "Fonts" tab. The DGN fonts in the selected directory are listed in the table
on the right.
4. Click "..." next to the mapping table.
The "Font" window opens.
5. Select the required font.
6. If applicable, select the required font mode and font size.
7. Click "OK".
You return to the "Fonts" tab.
8. Select one or more DGN fonts from the table on the right.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 123
Administering the import / export of plant components
13.4 Administering Pipe Easy
9. To assign the selected DGN fonts to the selected Windows font, click the "<<Assign" button.
10.Select one of the following options:
– Click "Save" to save the settings in the existing configuration file.
– Click "Save As" to save the settings in a new configuration file. Select the required
directory. Enter a file name. Click "Save".
Result
The fonts are assigned to one another and displayed in the mapping table. The settings are
written to the configuration file and saved as the default settings for DGN imports.
Requirement
You have made assignments in the "Options" window.
Procedure
To undo the assignment of the entries in the mapping table, proceed as follows:
1. Select one or more entries in the mapping table.
2. Click on the ">> Detach" button.
Result
The selected entries are removed from the assignment list.
13.4.1 Adding the "Show PipeEasy conversion settings" button to the toolbar
"Show PipeEasy conversion settings" button:
P&ID Administration
124 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.4 Administering Pipe Easy
This button is not displayed on the toolbar of the P&ID by default. Use a script to add the button
to the toolbar.
Requirement
The "std_PipeEasy" icon is available in the pictures library.
Procedure
1. Open the report template for the P&ID containing the toolbar you wish to add the button to.
2. Right-click in the white area of the report template.
3. Select the "Options" command from the context menu.
The "Options" window opens.
4. Enter the following script at the end of the '**PipeEasy Script section:
UIObject.AddMenu
UIObject.AddMenu
"ComosImportUtilities.ImportUtilities:ShowSetupForm", "",
"std_PipeEasy", MenuText
Note
XXDocProgID = "ComosPKBXXDoc.XXDoc" instruction
If the XXDocProgID = "ComosPKBXXDoc.XXDoc" instruction exists, delete it.
5. Click "OK" to save your input and close the "Options" window.
Result
The "Show PipeEasy conversion settings" button is added to the P&ID toolbar.
You can find additional information on this topic in the "Administration" manual, keyword
"Inserting button (icon) in the report toolbar".
Overview
The "Conversion settings window comprises four tabs. You can hide tabs and define standard
actions for text rules in the options script of the report template.
Example
When you run the following script, only the "Assign texts" tab is displayed:
UIObject.AddMenu
"ComosImportUtilities.ImportUtilities:ShowSetupForm",
"DisabledTabs:0;2;3|DEFAULTACTION:1", "std_PipeEasy",
"Show conversion form"
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 125
Administering the import / export of plant components
13.4 Administering Pipe Easy
Introduction
First create an action base object under which the base objects for text rules are collected.
Underneath this, create the number of base objects you require, with scripts describing texts.
Requirement
The base project is open.
P&ID Administration
126 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.4 Administering Pipe Easy
Result
The base object is created. If the function is completed successfully, an empty string ("") is
returned. If the function is not completed successfully, a text is returned describing the error.
Script example 1:
ChangeOwner: moves the object to unit UJ50
Function ChangeOwner(Params)
ChangeOwner = ""
' Device->Document->DocFolder->Unit
Set StartDev = Device.owner.owner.owner
For i = 1 To Len(Text)
s = Mid(Text, i, 1)
If IsNumeric(s) Then
s = Mid(Text, i)
Set StartDev = StartDev.Devices.Item(s)
If StartDev Is Nothing Then
ChangeOwner = "Unit " & Text & " not found"
Exit Function
Else
Exit For
End If
End If
Device.OwnerCollection.Remove Device
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 127
Administering the import / export of plant components
13.5 Administering Proteus import/export
StartDev.Devices.Add Device
End Function
Script example 2:
SetName: Rename COMOS object
Function SetName(Params)
SetName = ""
Set Device = Params(1)
Text= Params(2)
Device.Name = Text
If Device.Check <> 0 Then
SetName = "Invalid name"
End If
End Function
Requirement
● You are familiar with the Proteus scheme and the DEXPI convention.
You are familiar with the terms "Verification" and "Validation" according to the Proteus
interface.
You can find more information on this topic in the "P&ID Operation" manual, keyword
"Proteus scheme and DEXPI convention".
● You are familiar with the compatibility matrix.
You can find additional information on this topic in the "Installation and Configuration"
manual, keyword "Compatibility matrix".
● The version of the Proteus scheme must be identical in COMOS and in the target
application.
● You are familiar with using Proteus import and Proteus export.
You can find more information on this topic in the "P&ID Operation" manual, keyword "Using
Proteus import/export".
P&ID Administration
128 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.5 Administering Proteus import/export
Requirement
● The general requirements have been fulfilled.
You can find additional information on this topic in the "P&ID Operation" manual, keyword
"Requirements / Versions".
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 129
Administering the import / export of plant components
13.5 Administering Proteus import/export
Procedure
1. Open the base project.
2. Search for the following base object in the "Base objects" tab:
"@20 > B60 > M22 > A10 > A10 Configurator for attribute mapping"
3. Open the properties and select the "Attributes > Proteus" tab.
4. Drag the base object of P&ID equipment into the "Link to base object" field.
The attributes of this base object appear in the "Attributes" list.
5. In the "Select database" field, select a database with RDL data.
6. Drag a standard table suitable for the equipment into the "Link to standard table" field.
Standard tables for Proteus attributes are prepared in the iDB at the following location:
"Y40 > M22 > A10 > Y40M22N00001 Proteus mapping"
Entries prepared in the standard table appear in the "Mapping table".
7. Select the entries to be linked in the "Attributes" list.
8. Click on the "Create entries" button.
Additional entries are created in the "Mapping table" list as needed.
9. Click on the "Create dummy assignment" button.
The wildcard entry has the following syntax:
– "ISO 15926" column: Blank
– "Proteus class" column: <CamelClassified attribute description>
– "Sandbox ID" column: SAGTBD<attribute.nestedname>
– "Sandbox URI" column: SAGTBD<attribute.nestedname>
– "Value" column: Value = 0 causes suffix "_Min"; Value = 1 causes suffix "_Max"
10.Click on the "Search sandbox" button.
The attributes are linked.
11.Confirm your entries.
Principle
For certain attributes in the PlantItem node, the Proteus standard does not permit free text, but
rather expects a specific, predefined series of values.
To prevent users from making incorrect entries, the attributes are stored in the database with
standard tables that only contain permitted values.
Because Proteus expects the values in English, these standard tables are available in English
only.
P&ID Administration
130 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.5 Administering Proteus import/export
"Standard tables > Y10 > M22 > A10 > Y10M22N00004 > Y10M22N00004A01
ComponentType XMpLant"
The standard table has the following values:
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 131
Administering the import / export of plant components
13.5 Administering Proteus import/export
Requirement
● You are familiar with the overview of the Proteus administration.
See chapter Overview of the Proteus administration (Page 128).
"XML class" field Component of the Proteus import See chapter Standard tables (Page 130).
When you use an unknown XML class, a warning is displayed during the Proteus
export.
P&ID Administration
132 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.5 Administering Proteus import/export
Column Description
"COMOS nested name" -
"Proteus attribute name" -
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 133
Administering the import / export of plant components
13.5 Administering Proteus import/export
See also
Managing the "Proteus" tab (Page 135)
Requirement
● The base project is open.
The following project properties must be read from the base project or the base project
working layer.
P&ID Administration
134 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.5 Administering Proteus import/export
Requirement
● You are familiar with the reference of the "Proteus" tab.
See chapter Reference of the "Proteus" tab (Page 132).
Objective
In the Proteus scheme, P&ID objects are saved as PlantItem nodes. In order to export objects
in compliance with the standard, the interface requires certain metadata types from the P&ID
objects. You have the possibility to choose from the following values for the metadata:
● Hard-coded default values in the software
● User-defined values
When using user-defined values, you must define them on the following tab:
● Name: "Y00T00277"
● Description: "Proteus"
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 135
Administering the import / export of plant components
13.5 Administering Proteus import/export
P&ID Administration
136 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.5 Administering Proteus import/export
Result
● A PlantItem node of the corresponding type is created for the object in the export file.
● Objects whose class and subclass have no corresponding "PlantItem type" are exported as
equipment (for example: revision clouds).
● The hard-coded default values are assigned to the PlantItem node attributes.
Pipes
The following PlantItem types are used for pipes:
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 137
Administering the import / export of plant components
13.5 Administering Proteus import/export
P&ID Administration
138 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.5 Administering Proteus import/export
4. P&ID data
The P&ID is exported as a Drawing .
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 139
Administering the import / export of plant components
13.5 Administering Proteus import/export
Pipe structure
The pipe structure is retained if:
● The pipe segment is saved below the PlantItem node of the pipe section.
● The pipe section is saved below the PlantItem node of the pipe.
Other objects
Assemblies and accessories are saved below the same owner as in the COMOS Navigator.
Examples:
● In COMOS, a valve is located below a pipe section. In the Proteus file, the PlantItem node
of the valve is located below the PlantItem node of the corresponding pipe section.
● In COMOS, a nozzle is located below a vessel. In the Proteus file, the PlantItem node of the
nozzle is located below the PlantItem node of the vessel.
P&ID Administration
140 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.5 Administering Proteus import/export
Component class
Project properties, category "Proteus", group "Search nodes for base objects with
ComponentClass":
The search nodes speed up the import, because fewer objects must be searched in COMOS
during the import. Therefore, the more search nodes set and the more specific the search
nodes, the faster the import.
P&ID objects to be linked to the imported objects must be located under the search nodes.
Note
Replacing the default value of versions prior to 10.1 SP2
The default value in all versions prior to 10.1 SP2 is no longer valid for the current version.
For the Proteus export to work correctly, you need to replace the old default value with the "@30
> M00 COMOS general" value.
Procedure
1. In the base project, navigate to the base object in which you want to insert this script.
2. Open the "Script" tab in the properties.
3. Open a function.
4. Insert the following subprogram:
Sub OnXMpLantImportDone
...
End Sub
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 141
Administering the import / export of plant components
13.5 Administering Proteus import/export
Requirement
● You are familiar with the overview of the Proteus administration.
See chapter Overview of the Proteus administration (Page 128).
Procedure
Note
No global mapping
The mapping applies for the COMOS line type valid in the respective P&ID report. Note that you
have different options to define line types in COMOS. See the "Administration" manual,
keyword "Administering line types". If the COMOS line type "1" is replaced, for example, line
type "1" can look different in various P&ID reports but still be mapped to the same Proteus line
type.
P&ID Administration
142 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.6 Administering PDF import: String rule manager
6. Optional: For the sake of completeness, you can enter which Proteus line types you wish to
ignore in the standard table.
Generate the standard table value as normal and enter "x" in the "Value 1" column. In this
case you see the entry in the standard table, but the Proteus line type is ignored during the
import.
7. Confirm your entries.
8. Optional: Usage of the hardcoding object in the iDB
– Hardcoding object: Base object "@99 > A90 > Y00R00070 Hardcoding object"
– Use the following hardcoding entry:
"A00242 Standard table for Proteus line types"
Module: "M22"
Hardcoding object: "Y40M22N00003"
Locked: "True"
Requirement
● The PDF import is known.
You can find more information on this topic in the "P&ID Operation" manual, keyword "Using
PDF import".
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 143
Administering the import / export of plant components
13.6 Administering PDF import: String rule manager
User interface
P&ID Administration
144 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.7 Administering the "General P&ID export / import" interface
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 145
Administering the import / export of plant components
13.7 Administering the "General P&ID export / import" interface
P&ID Administration
146 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.7 Administering the "General P&ID export / import" interface
No reimport
The "General P&ID export/import" interface is not intended for export and reimport of a P&ID
report without loss. If you export a P&ID report to a CAE third-party system and then reimport
it, there can be differences between the original report and the reimported report.
See also
Editing project properties (Page 147)
Using the "Export" tab (Page 148)
Using the "Import" tab (Page 149)
Structure of the standard tables (Page 151)
Requirement
● You are familiar with the interface overview.
See chapter Technical sequence of the interface (Page 145).
Exporting a configuration
1. Open the project properties.
2. Select the "Process engineering > General P&ID export > P&ID Interface" category.
3. Edit the "Export directory" option.
The set folder will be evaluated at the following location:
"General P&ID export/import" tool, "Export" tab, "Set export directory" field.
Importing a configuration
1. Open the project properties.
2. Select the "Process engineering > General P&ID export > P&ID Interface" category.
3. Edit the "Import directory" option.
The set folder will be evaluated at the following location:
"General P&ID export/import" tool, "Import" tab, "Set import directory" field.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 147
Administering the import / export of plant components
13.7 Administering the "General P&ID export / import" interface
Requirement
● You are familiar with the interface overview.
See chapter Technical sequence of the interface (Page 145).
● The customer-specific standard tables for link information have been processed.
See chapter Structure of the standard tables (Page 151).
User interface
Procedure
1. Select the following entry in the COMOS menu:
"Plugins > CAE Apps > P&ID > General P&ID export/import"
The "General P&ID export/import" tab opens.
2. Select the "Export" tab.
3. Optional: Click the "Show/hide area" button on the "Event log" row.
The "Event log" area is displayed. In this area, each work step of the user and COMOS is
logged.
4. Optional: Click on the "Set export directory" button and select a local directory.
Default: Use the default setting in the project properties. See chapter Editing project
properties (Page 147).
P&ID Administration
148 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.7 Administering the "General P&ID export / import" interface
Requirement
● You are familiar with the interface overview.
See chapter Technical sequence of the interface (Page 145).
● The customer-specific standard tables for link information have been processed.
See chapter Structure of the standard tables (Page 151).
User interface
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 149
Administering the import / export of plant components
13.7 Administering the "General P&ID export / import" interface
Procedure
1. Select the following entry in the COMOS menu:
"Plugins > CAE Apps > P&ID > General P&ID export/import"
The "General P&ID export/import" tab opens.
2. Select the "Import" tab.
3. Optional: Click the "Show/hide area" button on the "Event log" row.
The "Event log" area is displayed. In this area, each work step of the user and COMOS is
logged.
4. Optional: Click the "Search folder" button next to the "Convert to COMOS package" field and
select a local directory.
Default: Use the "Workshare directory" default setting in the project properties. See
chapter Editing project properties (Page 147).
5. Optional: Check the Workshare directory.
– Click the "Show workshare directory" button.
– Check the contents of the ZIP file in the workshare directory.
6. Optional: Click on the "Set import directory" button and select a local directory.
Default: Use the "Set import directory" default setting in the project properties. See
chapter Editing project properties (Page 147).
7. Optional: Check the import directory.
– Click the "Show import directory" button.
– Check the contents of the files in the import directory.
– Archive or delete the existing files, if necessary.
8. Click the "Convert" button next to the "Convert to COMOS package" field.
The "COMOS package" is created in the set import directory.
– An entry appears in the "Import P&ID" area.
– The name of the "COMOS package" corresponds to the names of the ZIP file in the
workshare directory.
– If there is a PDF file with the name of the created "COMOS package" in the same
directory, then the PDF file will be added to the "COMOS package".
The PDF file can be shown in the "PDF viewer" area.
– An existing "COMOS package" with the same name will be overwritten.
9. Drag a node from the Navigator to the "Import COMOS package" field.
This node will be the owner of the final, created P&ID report.
10.Click the "Import" button next to the "Import COMOS package" field.
A P&ID report is created.
P&ID Administration
150 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.7 Administering the "General P&ID export / import" interface
Requirement
● You are familiar with the interface overview.
See chapter Technical sequence of the interface (Page 145).
Column definitions
● Name
Any, but with unique number.
● Description
Name of the report element according to the Proteus standard.
Example: 2-way valve (actuating function)
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 151
Administering the import / export of plant components
13.7 Administering the "General P&ID export / import" interface
● Value 1
– Path to the COMOS base object
Example: @30\M00\A60\A30\A20\01
or
– "Default"
The "Default" entry means that no assignment is made between a COMOS base object
and an object in the third-part system. An unchanged object in the third-party system is
used instead.
This case is standard for report elements for which no COMOS base object exists but a
symbol exists in the third-party system. Examples: Connection interruptions, signal lines,
connectors of connections.
● Value 2
Optional: Call of a COMOS script according to the following syntax: Call of the script base
object from the COMOS script library <comma> name of the script block.
Example: @20\A80\M27\A20\M27S00052, GetInstrumentType
● Value 3
Class of the process element according to the COMOS system.
Example: Measuring function
● Value 4
Optional. Example: String of a bitmap, parameter.
● Value 5
Name of the process element according to the third-party system.
● Value 6
Class of the process element according to the third-party system.
Example: Instrument
● Value 7
Optional. Examples: String of a bitmap, parameter ("1", "2", ...).
● Value 8
Path and name of a symbol in the third-party system. The separator is "\". The path
information begins with a separator.
● Value 9
Optional: Call of a COMOS script according to the following syntax: Call of the script base
object from the COMOS script library <comma> name of the script block.
P&ID Administration
152 Operating Manual, 03/2020 V 10.3.3
Administering the import / export of plant components
13.7 Administering the "General P&ID export / import" interface
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 153
Administering the import / export of plant components
13.7 Administering the "General P&ID export / import" interface
P&ID Administration
154 Operating Manual, 03/2020 V 10.3.3
Base data reference 14
14.1 cDB master data for modular engineering
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 155
Base data reference
14.1 cDB master data for modular engineering
P&ID Administration
156 Operating Manual, 03/2020 V 10.3.3
Base data reference
14.1 cDB master data for modular engineering
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 157
Base data reference
14.1 cDB master data for modular engineering
P&ID Administration
158 Operating Manual, 03/2020 V 10.3.3
Base data reference
14.1 cDB master data for modular engineering
Base object of the engineering task "A20 Placing and dissolving graybox P&ID"
1. Select the following node in the cDB:
"@02 > 200 > BAS > A > C Tasks"
2. If required, generate the following base object:
– Class "Action"
– Name "20 Process general"
– You apply all other properties from the other action objects. Recommendation: Copy an
existing action object and rename it.
3. Under the base object "20 Process general" create the following base object:
– Class "Action"
– Name "A20 Placing and dissolving graybox P&ID"
– "Placing and dissolving graybox P&ID" function
– Detail area "Target search"
– Working area: "ABCDWEFGHJK"
– "Attributes > SYS System data" tab: Use the extended tab on which the "Connection type
default" attribute is available.
Example
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 159
Base data reference
14.3 Attributes with locally filtered units
P&ID Administration
160 Operating Manual, 03/2020 V 10.3.3
Base data reference
14.5 Base object "@10 > A20 > A10 > A10 Physical objects"
14.5 Base object "@10 > A20 > A10 > A10 Physical objects"
Base object node "@10 > A20 > A10 > A10 Physical objects" is a general catalog for devices.
All of the devices contained in this base object node have certain basic properties.
Furthermore, there are objects that bring along additional properties and abilities.
14.5.1 Labeling
14.5.2 Symbol
Drawing types
All simple devices have one or more symbols on the "Symbols" tab. As a rule, the drawing types
"M21_P1", "M22_P1", "M22_P2" "M22_P3" and "M22_P4" feature symbols:
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 161
Base data reference
14.5 Base object "@10 > A20 > A10 > A10 Physical objects"
● "M22_P2" and "M22_P3" drawing types: Main area of application in power plant
construction/based on DIN 2481.
● "M22_P4" drawing type: Main area of application in Anglo-American units of measurement
based on ISA 5.x.
You can modify the symbols to suit your requirements. Symbols are hierarchically inherited
downwards.
Graphical symbol
You can change the graphical symbols in the properties of the base object, on the "Symbols"
tab. To open the Symbol Editor, double-click in the symbol column.
In the Symbol Editor, you can modify the graphical elements of the symbol using various
drawing tools. You can find additional information on this topic in the "Administration" manual,
keyword "Configuring symbols".
The drawing type symbols have a fixed size and are optimized for a grid and a scale. Various
options enable the symbols to also be used on P&IDs with a different grid and scale.
Each symbol has a placing point which is used for positioning on the grid. The green circles in
the figure above identify the point of origin. The placement point only seldom coincides with the
top left-hand corner, instead it is designed in such a way that the connectors can lie on the grid.
To extend a graphical symbol, insert functions. The following function types are available:
● Functions that determine which connector points a symbol has and where they are attached
to the symbol:
You can find additional information on this topic in the "Administration" manual, keyword
"Configuring connectors".
● Functions that attach subsymbols, i.e. additional symbols, to the graphical main symbol.
Example:
A valve can receive a drive. If you have specified a drive, it should be added to the main
symbol of the valve as a subsymbol.
Whether or not the subsymbol has its own DocObj depends on which function is used to
create the subsymbol.
You can find additional information on this topic in the "Administration" manual, keyword
"Reference of subsymbols / additional symbols".
P&ID Administration
162 Operating Manual, 03/2020 V 10.3.3
Base data reference
14.5 Base object "@10 > A20 > A10 > A10 Physical objects"
Text symbols
You call text symbols in the properties of a base object, on the "Symbols" tab. To do this, double-
click in the "Text" column. Define a text symbol that is attached to the graphical symbol of the
object by means of *V* P Textpkt1*.
Many objects from the base object node "@10 > A20 > A10 > A10 Objects available for order"
already have a text symbol on the top level.
This text symbol is inherited to all base objects below. It is only evaluated at the base objects
that call the text symbol by means of *V* P Textpkt1*. You can find additional information
on this topic in the "Administration" manual, keyword "Text symbol".
The P&ID text symbol outputs the position of the device.
The header of the script for the text symbol contains blind entries:
Header.Layer = "10"
Header.Class = "e72"
Layer "10" is a random number; it is used to bundle specific information. You can also enter
another random layer. Depending on the individual data structure, it is necessary to ensure that
you do not inadvertently use a layer that is already being used for some other purpose.
Header "e72" is a random description that is only used to bundle specific items of information.
You can also enter another random header. Please note that a number of headers have been
pre-assigned by the system. Thus, for example, Header.Class = "eZ" means that the text
cannot be moved.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 163
Base data reference
14.6 Base object "@10 > A20 > A10 > A10 > A60 Elements and components"
Device attributes
Each device is provided with its own special attributes on the "Attributes" tab. The attributes are
inherited hierarchically; if necessary, they are supplemented or modified by additional
attributes at each level.
All attributes are managed centrally. The base object node "@40 > A10 Attributes catalog" is
used for this purpose.
14.6 Base object "@10 > A20 > A10 > A10 > A60 Elements and
components"
Under this base object node there are objects that, as a rule, are used as constituent parts of
another object (the drives for valves, nozzles, and column fittings, for example).
P&ID Administration
164 Operating Manual, 03/2020 V 10.3.3
Base data reference
14.6 Base object "@10 > A20 > A10 > A10 > A60 Elements and components"
These objects are then entered on the "Elements" tab for the main objects, making them
available when you select the "New" command from the context menu.
14.6.1 Base object "@10 > A20 > A10 > A10 > A60 > A20 Nozzles and connections"
General
Nozzles are used to connect pipes to objects or objects to pipes.
Using nozzles
For a component to be connected automatically via a nozzle, the nozzle must have been input
in the base data as an element of the component and must have the name "NOZZLE". Please
note that the name is case-sensitive (all letters upper case)! You can find an example at the
base object for vessels in chapter Base object "@30 > M00 > A50 > A15 > A10 > A10 Vessels
and tanks" (Page 170).
You can create nozzles on the P&ID. Make a connection to the object on the P&ID. Select the
"Create nozzle" option in the "Select connection type" window.
The option is deactivated if the object does not have a "NOZZLE" element.
You can find additional information on this topic in the "PI&D Administration" manual, keyword
"".
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 165
Base data reference
14.7 Base object "@20 > A30 Functions"
14.7.1 Base object "@20 > A30 > A10 > A10 General functions"
Placeholders
When the user creates functions in the engineering project on level A1, these are
"placeholders" of the "measurement function" or "actuating function" function type. A detailed
specification of the function has not yet been drawn up or will not be drawn up. These functions
are described as neutral or general functions. They are replaced by more concrete functions in
I&C planning.
Function code
The functions of this level have no function code. The base object does not change when you
enter function codes.
Process connector
Connecting a wildcard function on a report to the process does not create a process connector.
Creating reports
Various evaluating reports can be created below functions on this and the following level.
Reports are not needed until I&C planning.
P&ID Administration
166 Operating Manual, 03/2020 V 10.3.3
Base data reference
14.7 Base object "@20 > A30 Functions"
14.7.2 Base object "@20 > A30 > A10 > A20 Measurement function" and "@20 > A30 >
A10 > A30 Actuating function".
Functions already have a function type from this level onwards.
14.7.3 Scripts
The following scripts have been input at the base object of a function on the "Script" tab:
Connect
Call: when joining the connectors, thus, for example, when connecting the function on the
P&ID.
Task:
Measurement function: Connect only calls function SetCDev from UserScriptBlock1. If a
function is connected to a piece of equipment or a pipe, the process connector is dynamically
created and connected. Thus in this case Connect is also called.
Actuating function: Connect calls ConnectedObjectAsChild. An "DI" connector or a "CS"
connector is created at the function, depending on the context.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 167
Base data reference
14.7 Base object "@20 > A30 Functions"
You can find more information on this topic in the "P&ID Operation" manual, keyword "Process
coupling for measurement function".
DisConnect
Call: When disconnecting two connectors. If you reduce the number of process connectors, the
connectors are separated as well. Thus DisConnect is called as well. Only with measurement
functions.
When the call is made, the "SYS.AutoDeleteFreeConnectors" attribute (type: Boolean, i.e.
checkbox) is queried on P&IDs at measurement functions. If the attribute exists and is set to "1",
measurement function connectors which are not connected or are free are deleted. If you wish
to use the attribute, you must create it yourself.
Task:
DisConnect calls function SetCDev from UserScriptBlock1.
OnEditOk
Call: Whenever "OK" or "Apply" is pressed in the properties window. Only with measurement
functions.
Task:
Measurement function: OnEditOk only calls function SetCDev from UserScriptBlock1.
OnReferencedByDevice
Call: When creating the function and on every change of base object.
Task:
Measurement function: When the function is created, it takes the first letter of the label of the
position and thus becomes a suitable measurement function. If a mask is defined for the label
at the base object, the mask wins out.
Thereafter, SetCDev is called from UserScriptBlock1. The base data can be simplified in
this way: The same neutral functions are always located below the positions and the
appropriate measurement function is created as a result of automatically taking over the label
(and the subsequent change of base object in UserScriptBlock1).
Actuating function: Same as the measurement function, but here the actuating function takes
the first letter from the label of the position and appends a "V".
P&ID Administration
168 Operating Manual, 03/2020 V 10.3.3
Base data reference
14.7 Base object "@20 > A30 Functions"
UserScriptBlock1
This script block sets script variables and implements the SetCDevice function. The script
variables do not necessarily have to be located in UserScriptBlock1.
1. PositionCDevFullName
Automatically generates a position below the P&ID if a function is placed on the P&ID from
the base data. The measurement function lies below the position. In order to put the
mechanism into effect following prerequisites have to be met:
– This function needs to have a valid function letter in the label. If you use the base object
of a very general function in the database, it will not have any function letters. Function
letters are not added to the labels until lower levels. If you use a base object with function
letters (and the other prerequisites are met), then the position is generated at the time the
engineering object is created. If this is a general object you have to enter a function label
at the engineering end. A base object change (pressure, temperature, etc.) takes place
in response to the new function letter and the position is created.
– The function has to have the global variable PositionCDevFullName set in the script.
It does not matter in which script block this global variable was set. The global variable
states which position is used.
2. PositionCDevice
Defines which base object the owner position of the function gets. You can find more
information on this topic in the "P&ID Operation" manual, keyword "Function is created by
placing on the P&ID".
3. SetCDevice:
Only for measurement function:
– Call:
If the label is changed. The entered label is automatically written to the "@40 > A10 > Y00
> A10 > B60 > Y00A00365 Function" object. This attribute is queried in SetCDev.
If the number of process connectors has been changed. The process connectors are
controlled by the CProcess number of process connectors attribute.
– Task: SetCDevice checks whether the base object needs to change and determines
the new base object.
The Variable BaseCDevFullName identifies the base object node under which the
search for the function base object should be carried out.
SetCDevice then passes the label and the number of process connectors to
the SetCDevBySpecs function. SetCDeviceBySpecs evaluates these parameters
and changes the base object if necessary:
First level below the node specified by BaseCDevFullName: depending on the function
code.
Second level: depending on the number of process connectors.
UserScriptBlock2
AddToGraficalParameter: Adds the following attributes to the functions context menu:
● "Y00A03310 Function type"
● "Y00A00305 Output and operation"
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 169
Base data reference
14.11 Base object "@30 > M00 > A50 > A15 > A10 > A10 Vessels and tanks"
14.8 Base object "@20 > A80 > M22 > A10 Script library M22S00001 -
M22S00050"
Base objects whose only purpose is to archive a script are managed in this branch. Therefore,
these base objects have a script block on the "Script" tab but no other settings.
14.9 Base object "@20 > B20 > M20 > A20 Place and dissolve graybox
P&ID"
This engineering task can only be used on P&ID reports and is used in the Modular Configurator
module, among other things. The engineering task is used to place a graybox on a P&ID report
and dissolve the graybox into objects. The typical P&ID automatic processes are used for
dissolving the graybox. When undoing the engineering task, the created objects are completely
removed from the report again.
See chapter Overview for administration of the "Graybox" function (Page 95).
14.10 Base object "@20 > D20 Base objects from external CAE data
imports"
An import from CAE third-party software creates base in COMOS. During the import, COMOS
creates the base data in the branch "@20 > D20 Base objects from external CAE data imports"
in the following node:
● "DGN DGN imports"
See chapter Administering a Microstation import (dgn, pid) (Page 121).
● "DXF DXF imports"
You can find more information on this topic in the "Basic interfaces" manual, keyword
"Importing AutoCAD data".
● "Proteus Proteus imports"
See chapter Configuring Proteus import (Page 141).
14.11 Base object "@30 > M00 > A50 > A15 > A10 > A10 Vessels and tanks"
P&ID Administration
170 Operating Manual, 03/2020 V 10.3.3
Base data reference
14.13 Base object "@30 > M00 > A50 > A15 > A80 Add. graphics and symbol drawing"
Identification of a container
In the database, vessels have the "Position" class and the "Equipment" subclass. You can find
more information on this topic in the "P&ID Operation" manual, keyword "Positions".
14.12 Base object "@30 > M00 > A50 > A15 > A30 Valves"
Valves
The valves are prepared in COMOS so that they can also be used as actuators. The actuators
belong to the actuating functions. You can find more information on this topic in the "P&ID
Operation" manual, keyword "Functions".
In the database, you can use the context menu to supplement the symbol for valves in the
P&ID. You can display flange connectors and map safety positions, for example. To do this, set
the attributes provided in the "UserScriptBlock1" script block. See also chapter Extending the
graphical settings (Page 79).
14.13 Base object "@30 > M00 > A50 > A15 > A80 Add. graphics and
symbol drawing"
14.13.1 Base object "@30 > M00 > A50 > A15 > A80 > A10 Text symbols P&ID"
Objects for pipe flags are prepared below this base object in the database.
Class: "Data set"
These objects create a text flay if they are dragged onto a P&ID. When the text flag is dragged
onto a pipe, it then docks to the pipe and is automatically moved or deleted along with it.
These objects do not create objects in the engineering view but are only found on the P&ID. The
objects of this base object node belong to pipes and must be placed in such a way that a
connector to a pipeline is created.
When you select a flag on the P&ID, the menu for the pipe is offered for selection from the
context menu.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 171
Base data reference
14.13 Base object "@30 > M00 > A50 > A15 > A80 Add. graphics and symbol drawing"
Attributes
"P&ID Options" tab:
● Inheritance source: "@10 > A20 > A10 > A20 > A10 > Y00T00039 Graphical options"
● "Y00T00039.Y00A00952 Graphical mirroring permitted"
Activated: The text flag is turned around if the text flag is connected to a pipe and the flow
direction is changed.
Default = FALSE,
Graphical flags (without text): TRUE
Text flags: FALSE, otherwise there could be errors in the text assignment.
● "Y00T00039.Y00A01620 Automatic rotation permitted"
Activated: The symbol is aligned to the symbol of the pipe. If the pipe is located vertically,
the symbol is also placed vertically, and so forth. The texts within the symbol are rotated
automatically in the appropriate direction.
In this case the manual rotation is disabled. Although the rotation grab is still displayed,
rotation does not have any effect and the flag always jumps back to the direction specified
by the pipe.
Default = FALSE,
Graphical flags (without text): TRUE
Text flags: FALSE, otherwise there could be errors in the text assignment.
● "Y00T00039.Y00A01621 Automatic selection permitted"
Activated: Only takes effect if the text flag is connected to a pipe. When the pipe is selected,
the text flag is automatically selected as well, even if the text flag no longer has any direct
contact with the pipe.
Default = FALSE
Objects that can be selected along with their main object (i.e. their device is selected): TRUE
Text flags (e.g. legends, etc.): FALSE
14.13.2 Base object "@30 > M00 > A50 > A15 > A80 > A30 Graphical symbols P&ID"
Class: "Element"
Subclass: "Graphic"
P&ID Administration
172 Operating Manual, 03/2020 V 10.3.3
Base data reference
14.13 Base object "@30 > M00 > A50 > A15 > A80 Add. graphics and symbol drawing"
Objects that are based on these base objects are always created below the P&ID.
They are colored black by default. Later on these objects are not be sorted into one of the
categories that are available under the unit.
The color set on the P&ID can be changed by selecting "Options > Graphical properties" from
the context menu.
Most of the objects from this base object node are placed on pipes. If the symbols touch a pipe,
the pipe turns yellow.
Most of the objects that are created in the engineering view do not have any attributes.
However, some of the objects have connectors and are connected to the pipe with these
connectors when placed on a pipe.
Therefore some of the graphic symbols are introduced below.
Base object "@10 > A20 > A10 > A20 > A10 > A30 > A10 Pipe break"
A pipe break is a symbol for a graphic break.
If you drag the base object onto the pipe, the pipe is interrupted visually and two break symbols
are displayed.
The symbols have two grab points:
The grab point that is located on the arm of the break (figure on the left) scales the break
symbols.
The grab point that is located on the pipe (figure on the right) increases the distance between
the break.
The pipe is retained as a whole in the database, but it is segmented and joined with the
connectors of the pipe break via its connectors.
Base object "@10 > A20 > A10 > A20 > A10 > A30 > A20 Page reference"
A page reference is a symbol that groups connections across pages visually in one place on the
P&ID. This page reference is created manually by the user on P&IDs. You can find more
information on this topic in the "P&ID Operation" manual, keyword "Creating page references
for two pipes".
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 173
Base data reference
14.14 Base object "@30 > M00 > A50 > A15 ... ISO 10628:2012"
Base object "@10 > A20 > A10 > A20 > A10 > A30 > B50 Revision cloud"
A revision cloud is also a purely graphic piece of information. However, unlike the other base
objects below "@10 > A20 > A10 > A20 > A10 > A30 Graphical symbols P&ID", the revision
cloud does not belong to a pipe.
This object has a large number of freely movable grab points that you can use to shape the
"cloud" in such a way that all required objects are included in it visually.
The revision cloud has no effect on the COMOS revision.
14.14 Base object "@30 > M00 > A50 > A15 ... ISO 10628:2012"
P&ID Administration
174 Operating Manual, 03/2020 V 10.3.3
Base data reference
14.16 Standard tables
14.15 Base object "@30 > M00 > A80 > A10 Document library objects acc.
to IEC 61355"
Base objects of the report templates for P&ID. See also section Administering P&ID reports
(Page 65).
"Standard tables > @40 > Y00 > A10 > B70 > Y00N00390 Standard table for the management of text functions that are
Text selection P&ID" made available in the symbol editor.
"Standard tables > @40 > Y00 > A10 > B50 > Y00N00337 Specifies the line widths of PFD/P&I objects. Pipes also use
Line widths" this entry.
"Standard tables > @40 > Y00 > A10 > B50 > Y00N00338 Specifies the colors of PFD/P&I objects. Pipes also use this
Colors" entry.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 175
Base data reference
14.16 Standard tables
P&ID Administration
176 Operating Manual, 03/2020 V 10.3.3
Base data reference
14.17 Object classes of P&ID objects
Classes
● Action
● Unit
● Connector
● Data record
● Document
● Document group
● Element
● Function
● Device
● Device request
● Location
● Position
● Revision
Subclasses
● Equipment
● Blackbox
● Graphic
● Instrumentation
● Category
● Object query
● Pipe
● Nozzles
● Symbol
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 177
Base data reference
14.17 Object classes of P&ID objects
P&ID Administration
178 Operating Manual, 03/2020 V 10.3.3
Reference of script functions for P&ID templates 15
P&IDs are assigned to the PFD application (options script, application = "PFD"). If you have
selected this, specific script functions are available for you to use in the options script.
15.1 AllowMultipleDisplay
Usage
The AllowMultipleDisplay report option is not supported anymore and is only available
for reasons of interface compatibility.
15.3 AutoConnectGrayboxes
● AutoConnectGrayboxes = True (default value)
Pipes can be separated automatically by components within moved grayboxes.
● AutoConnectGrayboxes = False
Pipes cannot be separated automatically by components within moved grayboxes.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 179
Reference of script functions for P&ID templates
15.8 CObjectFullNameForPipe (String)
15.7 CheckPipeCutMode
Core statement
BOOLEAN
Default = False
True: The "Check > Document" additionally recognizes inconsistent structures for the use of
separating components. The pipe cut mode is evaluated. Inconsistent components are colored
red.
False: Only the default checks are carried out.
You can find additional information on this topic in the "P&ID Operation" manual, keyword
"Setting the pipe cut mode".
Examples:
● For P&IDs:
CObjectFullNameForPipe = "@30|M00|A50|A10|A40|A10|A10"
● For PFDs:
CObjectFullNameForPipe = "@10|A10|A10|A10|A40|A90"
P&ID Administration
180 Operating Manual, 03/2020 V 10.3.3
Reference of script functions for P&ID templates
15.11 CopyPipeConnectionAutoOff
You find more information on this topic in the "P&ID" manual, keywords "Start configurations"
and "Document base objects".
Use
Use the CopyMainBranch report option to specify how COMOS should behave when a pipe
branch is created. If the report option CopyMainBranch is set, the report
option CopyPipeConnectionAutoOff is ignored.
You can make the following settings (the values have to be specified in quotation marks):
● CopyMainBranch = "Always"
Specifies that the pipe substance data should always be applied to a pipe branch.
● CopyMainBranch = "Never"
Specifies that the pipe substance data should never be applied to a pipe branch. COMOS
inserts a standard pipe for the pipe branch.
● CopyMainBranch = "Ask"
Specifies that the user is able to determine the desired behavior via a dialog when creating
a pipe branch.
You can find additional information on this topic in the "P&ID" manual, keyword
"CopyPipeConnectionAutoOff".
15.11 CopyPipeConnectionAutoOff
Use
The report option CopyPipeConnectionAutoOff is used to specify that the user can select
the behavior of COMOS when creating a a pipe branch using the dialog "Create connection" .
To use the settings of the report option CopyPipeConnectionAutoOff, deactivate the
report option CopyMainBranch or set it to Ask.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 181
Reference of script functions for P&ID templates
15.13 DrawPFDConnsUnderDocumentInBlue (Boolean)
Use
In COMOS, you can make a setting so that the objects associated with a P&ID plan are placed
directly below the document in the Navigator.
Use the DrawPFDConnsUnderDocumentInBlue report option to specify whether P&ID
connections should be displayed in blue in the Navigator if these connections are located
directly under the document.
The following settings can be made:
● DrawPFDConnsUnderDocumentInBlue = true
Specifies that the connections should be shown in blue in the Navigator.
● DrawPFDConnsUnderDocumentInBlue = false
Specifies that the connections should not be shown in blue in the Navigator.
P&ID Administration
182 Operating Manual, 03/2020 V 10.3.3
Reference of script functions for P&ID templates
15.17 DrawPipeConnectorSymbol (Boolean)
Use
In COMOS, you can make a setting so that the objects associated with a P&ID are placed
directly below the document in the Navigator. By default, these P&ID objects are displayed in
the Navigator in blue.
Use the DrawPFDDevicesUnderDocumentInBlue report option if you want to stop the
objects being shown in blue.
The following settings can be made:
● DrawPFDDevicesUnderDocumentInBlue = true (default)
Specifies that the P&ID objects should be shown in blue in the Navigator.
● DrawPFDDevicesUnderDocumentInBlue = false
Specifies that the P&ID objects should not be shown in blue in the Navigator.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 183
Reference of script functions for P&ID templates
15.19 EnableContinueDrawingConnection
15.19 EnableContinueDrawingConnection
Introduction
If the EnableContinueDrawingConnection report option is activated, the user can use the
"Connection" tool to extend a pipe or channel structure.
Procedure
To activate EnableContinueDrawingConnection mode, proceed as follows:
1. Open the report template for the report for which you wish to activate the mode.
2. Right-click on the working area of the report template.
The context menu opens.
3. Select the "Options" command from the context menu.
The "Options" window opens.
4. Find the EnableContinueDrawingConnection entry.
5. Comment in the EnableContinueDrawingConnection report option.
If the value of the option is set to False, change it to True.
P&ID Administration
184 Operating Manual, 03/2020 V 10.3.3
Reference of script functions for P&ID templates
15.21 SetImplementationByConcessionRI (Boolean)
6. Click "OK" to save your input and close the "Options" window.
7. Click "Save" in the report template.
Result
The EnableContinueDrawingConnection report option is activated for all reports which
are based on the selected report template. The next time the user opens a corresponding
report, the mode is available.
15.20 EnableInteractiveEditableTexts
Default = True
● EnableInteractiveEditableTexts = True
You can edit editable texts on a P&ID.
● EnableInteractiveEditableTexts = False
The texts cannot be edited.
For additional information on this topic, refer to the "P&ID" manual, keyword "Lock editable
texts for editing".
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 185
Reference of script functions for P&ID templates
15.25 StdPipeNoReflect (Boolean)
Note
Dependency of properties of the report
The SetPipeFlagOnCreate option depends on the "Show standard pipe label" attribute in
the "Attributes > Document options" tab of the R&I properties. When the "Show standard pipe
label" option is activated, the option script is automatically set to TRUE.
TRUE: The standard pipe flag is displayed automatically when a pipe is created. This means,
the text script defined at the base object of the pipe section in the "Symbols" tab for the current
drawing type is evaluated and displayed.
FALSE = Default
Use
Use the SortNewBranchUnderPipe report option to specify how COMOS should sort new
pipe sections in the Navigator when these are drawn onto an existing pipe.
The following settings can be made:
● SortNewBranchUnderPipe = False (default)
COMOS sorts the new pipe section under the existing pipe in the Navigator.
● SortNewBranchUnderPipe = True
COMOS creates a new pipe structure in the Navigator for the new pipe section.
P&ID Administration
186 Operating Manual, 03/2020 V 10.3.3
Reference of script functions for P&ID templates
15.27 SynchronizeStdPipeFlag (Boolean)
Note
Standard pipe flags
Only applies to standard pipe flags. If you have placed them manually, you can define the
behavior of the flags via the attribute Y00T00039. Y00A00952.
P&ID Administration
Operating Manual, 03/2020 V 10.3.3 187
Reference of script functions for P&ID templates
15.27 SynchronizeStdPipeFlag (Boolean)
P&ID Administration
188 Operating Manual, 03/2020 V 10.3.3