0% found this document useful (0 votes)
185 views17 pages

AutoPLANT PID To OpenPlant PID Symbol Migration

This document describes how to migrate AutoPLANT PID symbols to OpenPlant PID cells. It provides steps for adding multiple AutoCAD drawings to a MicroStation cell library at once. It also describes how to add individual AutoCAD drawings as cells and adjust their origin or rotation if needed to match OpenPlant standards. The document explains how to create filled cells or add hatching to cells using MicroStation tools.

Uploaded by

ananth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
185 views17 pages

AutoPLANT PID To OpenPlant PID Symbol Migration

This document describes how to migrate AutoPLANT PID symbols to OpenPlant PID cells. It provides steps for adding multiple AutoCAD drawings to a MicroStation cell library at once. It also describes how to add individual AutoCAD drawings as cells and adjust their origin or rotation if needed to match OpenPlant standards. The document explains how to create filled cells or add hatching to cells using MicroStation tools.

Uploaded by

ananth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

AutoPLANT PID to OpenPlant PID Symbol

Migration
Contents
Introduction..................................................................................................................................................1
Adding Multiple Blocks to a Cell Library .......................................................................................................1
Steps .........................................................................................................................................................1
Adding an Individual Block into a Cell Library...............................................................................................8
Steps .........................................................................................................................................................8
Origin and Rotation Requirements.............................................................................................................12
Inline Offset ............................................................................................................................................12
Angle Rotation ............................................................................................................................................13
Filled and Hatched Cells..............................................................................................................................14
Creating Filled Cell ..................................................................................................................................15
Adding Hatch to Cell ...............................................................................................................................16

Introduction
This document explains how to migrate AutoPLANT P&ID (APPID) block(s) to OpenPlant PID cell(s).

Adding Multiple Blocks to a Cell Library


These are the first steps for conversion and placement of existing AutoCAD DWG in OPPID. We will be
importing multiple DWG files into a MicroStation cell Library. This cell library will then be used in OPPID.

Steps
1. Identify DWG files to import
a. It is best to have the file names formatted so they do not have to be renamed in the cell
library. These file names should be organized in folders. A good idea is to have sub
folders with the name of the cell library in which they will be populated into.
2. Open OPPID and select the Project Workspace in which these cell libraries reside in. This is to
ensure we use the same units in which the cell will be inserted into

3. Create a new DGN file


a. CellMerge.dgn
4. Select Cancel to any dialog that might come up
a. Project Selection

b. P&ID Document

5. Once drawing is opened Select References dialog


6. Open File Explorer which contains the AutoCAD files
7. Drag multiple files from folder to Reference dialog

8. Ensure Attachment Method is Recommended and then select OK


9. Depending on workspace select the Unit type. For Imperial Select Inches, for Metric select
Millimeters. Select Ok for each dialog that is displayed, which will be for each file.
NOTE: Do NOT check box “Do not display”…

10. The files will be displayed in the Reference dialog

11. Go to File menu and select Save As. Change file type to DWG
12. Select Options from this menu and go to the References tab

13. Change the attachments to Merge To Cell and select Ok


14. Set file name to CellMerge.dwg and select Save
15. Select Cancel to any dialogs that may appear
16. Notice all the References have been merged into the drawing
17. Open KeyIn dialog
18. Key in export command to export to a cell library
export cells shared c:\APPIDBlocks\Valves.cel
NOTE: Ensure there are no spaces in path

19. Check message center to ensure file was created

20. Open cell library

21. Open Models Dialog


22. Select a model
23. Turn ACS Triad on
a. Type Ctrl+B

24. Measure cell


a. We recommend that cells be as close to 1:1
Adding an Individual Block into a Cell Library
It is possible to add an individual APPID block into an OPPID cell library.

Steps
1. Open the desired cell library in OPPID making sure to select the appropriate Project (in this case
valves.cel in the DIN_forAP project)
2. Open the Models Dialog, and do either a or b
a. Create a new model. In this case, you must be very careful to set the correct seed file
(we have been using the seed file in the project in which we are working), and to set the
UOR correctly (we have been setting them 1000 per MM for metric and 304800 per Inch
for Imperial).

b. Copy an existing model. In this case, you just have to delete any elements in the new
model after it is copied and give the copied model the appropriate name. Note that in
some of the cell libraries, we created a template that we copy, but you can copy any
existing model.

3. Open the References dialog and click on the Attach Reference option
4. Attach the desired APPID block as a reference (in this case 39900.dwg). Note that the
Attachment method should be set to Recommended (or Coincident)

If prompted for DWG/DXF Units, enter the appropriate Unit (Inches for Imperial, Millimeters for
Metric). NOTE: DO NOT check the check box “Do not display again …”
5. In the References dialog, and select Tools->Merge Into Master

Notice the prompt at the bottom of the screen:

You now need to select the View for the merge, so just click in the desired View, and then click
OK on the following dialog:

Now the block has been imported into the cell library. You may need to make adjustments if the
AutoCAD -> MicroStation graphics conversion is not satisfactory. For example, for valves, we
moved the valves so that the center of the valve was at 0,0 (in AutoPlant, the left side of the
valve is at 0,0). You might want to turn on the ACS Triad (Ctrl-V to bring up View Attributes)
6. Close the cell library
Origin and Rotation Requirements
APPID and OPPID have some different symbol origin and rotation requirements. Therefore some of the
APPID blocks will need to be offset and/or rotated to obey the OPPID rules. The OPPID rules can be
found in
http://communities.bentley.com/products/plant/design___engineering/w/plant_design_and_engineeri
ng__wiki/5187

The following symbols will require adjustments:

 Inline, angle and 3 way valves


 Reducer
 Tee

The following are an examples of origin and rotation differences and adjusting for them.

Inline Offset
APPID inline valves have the origin point on the left side. OPPID requires inline valves to have the origin
in the center.

APPID inline OPPID Inline

1. Once the APPID block is imported into the cell library, modify the cell’s origin to the center of
valve:

2. In AutoPLANT_PID_Conversion.01.07.ecschema.xml, find the block mapping name and add an


offset attribute:
XML Example
<ECClass typeName="MY_VALVE" displayLabel="My Valve" isDomainClass="True">
<BaseClass>AT_HVALVE</BaseClass>
<ECCustomAttributes>
<CLASS_MAPPING_ATTRIBUTE xmlns="AutoPLANT_PID_Conversion.01.07">s
<TARGET_CLASSNAME>RUPTURE_DISK</TARGET_CLASSNAME>
<PROPERTY_MAPPING_CLASSNAME>VALVE_MAPPING</PROPERTY_MAPPING_CLASSNAME>
<ALTERNATE_TARGET_CLASS>GATE_CONTROL_VALVE</ALTERNATE_TARGET_CLASS>
<ALTERNATE_PROPERTY_MAPPING_CLASSNAME>INSTRUMENT_MAPPING</ALTERNATE_PROPERTY_MAPPING_CLASSNAME>
<IS_INRUN>True</IS_INRUN>
</CLASS_MAPPING_ATTRIBUTE>
<OFFSET_VALUE xmlns="AutoPLANT_PID_Conversion.01.07">
<ORIGIN_OFFSET>0.5,0,0</ORIGIN_OFFSET>
</OFFSET_VALUE>
</ECCustomAttributes>
</ECClass>

NOTE: It is possible that the ECClass inherits the OFFSET_VALUE custom attribute from its parent.

Angle Rotation
APPID angle valves have a 45 degree rotation. OPPID requires angle valves to have a normalized
rotation.

APPID Angle valve OPPID Angle valve

1. Once the APPID block is imported into the cell library, rotate cell:
2. In AutoPLANT_PID_Conversion.01.07.ecschema.xml, find the block mapping name and add an
offset attribute:

XML Example
<ECClass typeName="AP_32100" displayLabel="Angle" isDomainClass="True">
<BaseClass>BASE_ANGLE_VALVE</BaseClass>
<ECCustomAttributes>
<CLASS_MAPPING_ATTRIBUTE xmlns="AutoPLANT_PID_Conversion.01.07">
<TARGET_CLASSNAME>ANGLE_VALVE</TARGET_CLASSNAME>
<PROPERTY_MAPPING_CLASSNAME>VALVE_MAPPING</PROPERTY_MAPPING_CLASSNAME>
<ALTERNATE_TARGET_CLASS>ANGLE_CONTROL_VALVE</ALTERNATE_TARGET_CLASS>
<ALTERNATE_PROPERTY_MAPPING_CLASSNAME>INSTRUMENT_MAPPING</ALTERNATE_PROPERTY_MAPPING_CLASSNAME>
<IS_INRUN>True</IS_INRUN>
<ANGLE_TO_ROTATE>-45</ANGLE_TO_ROTATE>
</CLASS_MAPPING_ATTRIBUTE>
</ECCustomAttributes>
</ECClass>

Filled and Hatched Cells


This section covers how to create a cell that is completely filled in or has a hatched area.
Creating Filled Cell

In order to fill in a cell or shape, MicroStation should be used. The tools required to do this operation
are suppressed in OPPID, but if this isn’t available one can still use the tool in OPPID by using the keyin.
Below are general steps to filling in a cell. There are a few different ways that one could start this
process. This document will first go over the basics of using the tools in MicroStation to achieve this
goal and then cover a few scenarios of how it might be started.

1. Open the cell library or model that needs to have the fill applied to
2. Select the cell that needs to be filled using the Element Selection tool
3. Go to Tools > Groups > Create Region

a.
b. If this isn’t available use the key in below
i. create region icon
4. Set the top option to “Flood” and the Fill Type to “Opaque”

a.
5. Left Click inside the area that needs to be filled. For example, in the below case click inside the
arrows body

a.
b. A double click may be required if the cell wasn’t selected before entering into the
command
6. This should result in the arrow’s insides to be filled with the color specified.

a.

As mentioned above, starting this process can vary depending on what resources are available for any
given cell. The above steps assumes that there is a cell with the given shape available to work with. In
some examples, the imported cell might appear to be filled but when merging the cell into the drawing
file, this fill is lost and only a single line is left in its place. When this happens, there are only a few
things one can do.

 Look to see if there is another un-filled cell that is similar enough to use as a bases for the fill
process
 Redraw the outline of the cell so that it can be filled in.

The first option would be idea as some times with the second option one needs to redraw the shape
without any definite references (such as snap points). If one does have to redraw the cell, it is still a
good idea to look at other cells in the same library to get an idea of how large the cell needs to be so
that you have some restraints in place when drawing it. One can also reference in the original model
and just trace the shape.

Once a cell is defined, the fill steps above can be done. A keynote on the fill process, the shape that will
be filled MOST be CLOSED. There can’t be any gaps in the lines or the fill will not work.

Adding Hatch to Cell

Just like the Fill command above, this tool is suppressed in OPPID, but can still be accessed using the
keyin. Below are some basic steps to adding the hatch seen above to the cell.

1. Open the cell library or model that needs to have the hatch applied to
2. Select the cell that needs to be filled using the Element Selection tool
3. Go to Tools > Patterning > Hatch Area
a.
b. The keyin for this command is below –
i. hatch icon
4. Select the Fill option (the second option in the line of icons at the top) and set the spacing to
something that will work in the cell. When using the flood option the area the hatch will be
placed needs to be closed

a.
5. Once these options are set, click inside the area that needs the hatch, this should light highlight
the area to show that it is selected

a.
6. If this is correct, click again inside the view to apply the hatch

a.

You might also like