How To Show Active Model File Name to Piping Components in OpenPlant Modeler



Applies To 
Product(s):OpenPlant Modeler V8i
Version(s):

08.11.09.XXX

Environment: Windows 7/8.1/10 (64-bit)
Area: Customization
Subarea: Component
Original Author:Deepak Singh,Bentley Product Advantage Group

In OpenPlant Modeler, requirement is to show active model file name to piping components.

Background

In OpenPlant Modeler, by default there is no any property that shows active model file name to piping components. Below wiki article explains the procedure to achieve such requirement in OpenPlant Modeler

Steps to Accomplish

  1. Launch Bentley Class Editor.
  2. Open OpenPlant_3D.01.07.ecschema of respective project from project directory.
  3. Supplement with OpenPlant_3D_Supplemental_Modeling.01.07.ecschema & OpenPlant_3D_Supplemental_ModelingViews.01.07.ecschema.

    For More information on supplementing schema Click Here>>>>

  4. Navigate to Piping Component class, switch to Properties tab. Refer image as shown below.



  5. Click on Add > New to create a new property.



  6. Enter property name as desired here “MODEL_NAME” as shown below.



  7. Right click on created property select Custom Attributes > Add/Remove to add a custom attribute. Refer image below



  8. Search Calculated ECProperty Specification custom attribute & using drop arrow add to Applied Custom Attributes. Refer image below



  9. Enter details under applied custom attribute section as shown below.

    ECExpression:System.Path.GetFileNameWithoutExtension(ActiveFile.FileName)
    Required ECExpression SymbolsSet[0]: System.String
    Required ECExpression SymbolsSet[1]: System.Path
    Required ECExpression SymbolsSet[2]:
    System.Environment
    Required ECExpression SymbolsSet[3]:
    ActiveFile



    Note: To add Required ECExpression SymbolSets, right click & set Add Element as shown below.



  10. Save all the changes & verify the result in OpenPlant Modeler as shown below.

See Also

communities.bentley.com/.../how-to-add-dimensional-unit-to-added-property-in-openplant-modeler-connect-edition

See Video

communities.bentley.com/.../273775