Mapping New Valve Types in Plant 3D

A client asked how to map custom items in the catalogs from PnID to Plant 3D. In doing some research, I found out some more key settings in Plant 3D.

It turns out that you can’t (AFAIK) customize the Component Categories or Piping components:

image

The question was how to I map a custom class in PnID to Plant 3D so that it can get validated?  The easiest (and safest) is to map it to a similar class. If this feature is mandatory, we can do it, but we will have to edit an installation xml file, so remember to back it up and implement it with every release.

For example, let’s create a custom flow meter class under valves in PnID.  The PnID structure is really flexible so this step matters the least. We just need to know which class we are trying to map.

image

Next we need to edit a special xml file.  Now, this file is stored in the installation directory, so you may need to distribute/back up this file if you have to make changes.

We need to edit this file:

C:\Program Files\Autodesk\AutoCAD Plant 3D 2013 – English\P3dEnumeration.xml

Because it’s in the installation directory, you may need to start your xml editor by right-clicking on the application exe and choosing run As Administrator. Also, make sure Plant 3D is closed when you edit this file.

image

For our example, I added a FlowMeter BodyType.

image

If you notice, many sections correspond to entries in the Catalog Editor. From this file, we can learn which options are available for the fields:

clip_image002

The screenshot above, show the settings I filled out for a custom flow meters I put in a spec.

Back in Plant 3D, navigate to Plant 3D DWG > P&ID Object Mapping.  Select the new custom Flow Meter class and click Add Mapping.

Here I selected the Valve class and now the FlowMeter subtypes are available for us:

image

If you select multiple boxes, you will be prompted to pick a subtype when the part is inserted. I ended up just selected FlowMeter-Inline

image

 

After choosing the mappings, we need to select the fields that populate and validate. Don’t forget to check the box at the bottom for when to check the 3D to P&ID validation.

image

Save all the changes we have made.

After inserting the P&ID symbol, our Flow meter will be available in the PnID Palette:

image

 

image

 

image

And we will be able to validate it.

image

image