During modelling projects there might be a requirement to show pipeline number property value to gasket and bolt. This can be achieved by propagating number property value from pipeline to piping components and then to gasket and bolt.This article will explain important schema changes to achieve the same for metric project unit, same changes can be done to another desired project unit.
1.Launch Class Editor and open schema OpenPlant_3D.01.08.ecschema.xml.2.Supplement it with OpenPlant_3D_Supplemental_Modelling.01.08.ecschema.xml and OpenPlant_3D_Supplemental_ModellingViews.01.08.ecschema.xml.
3. Go to Piping Component Class and search for Number property. Right Click on Number and click on Custom Attributes and select Add/Remove.
4. In the Custom Attributes, select Calculated ECProperty Specification and add it to the Number property.
5. In the Calculated ECProperty Specification, type in the following ECExpression in the ECExpression field-ECExpression-this.GetRelatedInstance("SEGMENT_HAS_PIPING_COMPONENT:1:PIPING_NETWORK_SEGMENT").GetRelatedInstance("PIPELINE_HAS_SEGMENT:1:PIPING_NETWORK_SYSTEM").NUMBER
6. Go to Gasket class and search for Number property and similarly add Custom Attribute, Calculated ECProperty Specification.
7. In the Calculated ECProperty Specification, type in the following ECExpression in the ECExpression field-ECExpression-this.GetRelatedInstance("JOINT_HAS_SEAL:1:JOINT").GetRelatedInstance("PORT_HAS_JOINT:1:PORT").GetRelatedInstance("PIPING_COMPONENT_HAS_PORT:1:PIPING_COMPONENT").NUMBER
8. Go to Bolt class and search for Number property, click on Override to localize the property and similarly add Custom Attribute, Calculated ECProperty Specification.
9. In the Calculated ECProperty Specification, type in the following ECExpression in the ECExpression field-this.GetRelatedInstance("JOINT_HAS_FASTENER:1:JOINT").GetRelatedInstance("PORT_HAS_JOINT:1:PORT").GetRelatedInstance("PIPING_COMPONENT_HAS_PORT:1:PIPING_COMPONENT").NUMBER
10. Save the schema and launch OpenPlant Modeler and place pipe with the fasteners.
11. The Pipeline number will be displayed for Gaskets and Bolts.
If above problem still persists, then please create a Service Request and contact the Bentley Product Advantage group. Please include a list of all relevant details to get in depth analysis for a solution or workaround.