AutoPLANT PID To OpenPlant PID Symbol Migration
AutoPLANT PID To OpenPlant PID Symbol Migration
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).
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
b. P&ID Document
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
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
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 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.
1. Once the APPID block is imported into the cell library, modify the cell’s origin to the center of
valve:
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.
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>
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.
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.