Applies To Product(s): OpenPlant Modeler Version(s): 08.11.09.XXX Environment: Windows 7 64 bit Area: Component Subarea: - Original Author: Harpreet Singh, Bentley Technical Support Group Background In this wiki article we will discuss how support tag can be customized by including several properties in the tag. We will take example of three properties UNIT, SERVICE & LINENUMBER to build a tag for support. Steps to Accomplish Open Class Editor and load OpenPlant_3D schema. Supplement it with OpenPlant_3D_Supplemental_Modeling and OpenPlant_3D_Supplemental_ModelingViews schemas. Go to Support class and switch to properties tab. Select UNIT property and click Override button. Add Calculated ECProperty Specification custom attribute on this property. Add below EC Expression in the custom attribute and change the other fields as highlighted in picture. this.GetRelatedInstance("DEVICE_HAS_SUPPORT:1:PIPING_COMPONENT").UNIT Add Category custom attribute and fill in the values as shown below. Add new property SERVICE on Support class. Similar to step 5, add calculated ECProperty Specification custom attribute and add the expression as given below: this.GetRelatedInstance("DEVICE_HAS_SUPPORT:1:PIPING_COMPONENT").SERVICE Add Category custom attribute on SERVICE property and fill in the values as shown below: Now go to PIPING_COMPONENT class and add a new property LINE_NUMBER. Add Calculated ECProperty Specification on this property and add below expression. this.GetRelatedInstance("SEGMENT_HAS_PIPING_COMPONENT:1:PIPING_NETWORK_SEGMENT").GetRelatedInstance("PIPELINE_HAS_SEGMENT:1:PIPING_NETWORK_SYSTEM").NUMBER Go back to support class and add new property LINENUMBER. Add Claculated ECProperty Specification on this property and add below expression. this.GetRelatedInstance("DEVICE_HAS_SUPPORT:1:PIPING_COMPONENT").LINE_NUMBER Add Category custom attribute and fill in the values as shown below: Select NAME property now and modify the expression as given below: Save the changes and reopen the OpenPlant Modeler. Verify the Result Open a new drawing. Create a pipeline and place some pipes in the model. Now place a support on the pipe. Select the support and check the element information dialog to see the tag. Case II: How to pull the tag from adjoining support There may be a case where primary support is connected to another support and same tag has to be applied to it. For example, DIRECTIONAL_SUPPORT_GUIDE is connected to TEE_SHOE as shown below: Steps to Accomplish Open class editor and load schemas as mentioned in Steps 1 & 2. Go to DIRECTIONAL_SUPPORT_GUIDE class and select NAME property in properties tab. Click Override button on the right side. In Calculated ECProperty Specification custom attribute change the EC Expression to: this.GetRelatedInstance("SUPPORT_HAS_SUPPORT:1:SUPPORT").NAME Save the changes in schema. Verify the Result Place a pipe in the model. Place Tee Shoe on the pipe and check the tag. Place Directional Support Guide on Tee shoe and check the tag in element info. Note: For existing support, which have been placed prior to this modification will not update the tag automatically. To force the reevaluation of the tag, Select the supports you wish to refresh. Go to Utilities>Key-In and type 'bmech rebuild' command and hit enter. This will force the reevaluation of support tag. See Also Comments or Corrections? Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!
↧