Applies To Product(s): OpenPlant PID Version(s): 08.11.10.XXX Environment: Windows 7 (64 bit) Area: Customization Subarea: Original Author: Harpreet Singh, Bentley Product Advantage Group To add custom valve end conditions for valves in OPPID using existing graphics Background User requested that they want to use WAF end conditions for valves from spec but the end conditions should look similar to flanged end conditions. This article will how can we use graphics of flanged end conditions from Valves cell library for the Wafer end conditions. Steps to Accomplish Launch Class Editor. Load OpenPlant_PID schema and supplement it with OpenPlant_PID_Supplemental_Imperial schema. Go to VALVE_END_CONDITIONS class and right click on it. Select 'Add Derived Class' from the context menu. Name the new class as WAFER_VALVE_END_CONDITIONS. Go to FLANGED_VALVE_END_CONDITION class and right click on it. Select Custom Attributes>Copy option from the menu. Select the custom attribute and click Copy. Now right click on WAFER_VALVE_END_CONDITIONS and paste this attribute. Note: This step is done since we are using flanged end conditions as template therefore we have added the information of the cell library as shown below. Now switch to properties tab and select CONNECT_POINT_OFFSET property and override it. Change the deafult Value in Property custom attribute as shown below. Note: Offset value has been taken from falnged end conditions class. Go to END_CONDITIONS_LIST class and add the new end condition class in the list. a. Right click on the Items field and select Add Element. b. Add the details as shown below. Note: Class name should match with the name we given to the class in the step 5 above. The above steps are sufficient to use the wafer end conditions for valve in OPPID. But if you want to place the valve from spec then you should add the mappings for the newly added end conditions. Below are the steps for spec mapping. Spec Mapping Go to SPEC_VALVE_MAPPING class. Scroll down in the Specification Definition Mapping custom attribute to Alias Mappings. Add new element and add below values in it. Add another element and add below values. Now go to SPEC_VALVE_MAPPING_FOR_OPENPLANT_SPECS class. Again we need to add the two new entries in the Alias Mappings and they should look like this. Save the changes in schema. Verify the Result Open a new drawing in oppid. In the settings tab of P&ID Document dialog, set your spec and End Conditions to Wafer. Now, place a pipe run in the drawing. Place a valve and select the entry which shows WAFER end conditions. Select the valve and check the end conditions in element info. See Also Comments or Corrections? Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to this Comments or Corrections?" section. THANK YOU!
↧