This document explains the configuration changes required to have the fractional pipe sizes in an imperial WorkSet display as fractional pipe sizes. Currently the size properties in OpenPlant Modeler (OpenPlant_3D schema) are of type DOUBLE. This means the sizes will display as decimals only. If a pipe size that is a fraction of a whole pipe size is placed, the size will read as a decimal. Out of the box, a pipe size of 1-1/2” will display as 1.5in. This procedure configures the size, so it displays as 1-1/2”. A further example, a ¾” pipe will display as ¾” instead of 0.75in.
User will use the existing property, NOMINAL_SIZE and create a new property to hold the correctly formatted results.NOTE: This was performed using the v8i version of the Bentley Class Editor. This will allow user to add an ECExpression Symbol Set so user can use System.String. User can use the CONNECT Edition Class Editor, but it will require the use of Text Editor to manually add the Symbol Set entry in the schema.
A. Converting the NOMINAL_DIAMETER Property to a String from a Double To start, user will need to convert the NOMINAL_DIAMETER property from its delivered Double type to a String type. This will remove the default Units extension from the property.
B. Adding a New Property to Hold the Corrected Size and Unit Value In this section, user will add a new property to hold the resulting string for the fractional pipe sizes. This property will provide user with a pipe size value that can be used in annotation and properly display the size when it has a fraction and all sizes with the inch marks. This will require the creation of a nested IIF statement.
Continuing in the OpenPlant_3D schema, and on the PIPE class, click on the Properties tab.
Click Add… and when prompted, create the new property as shown below.
NOTE: User can name the property as user like.
With the property now added, click Custom Attributes Add/Remove…
Add a Calculated ECProperty Specification, Category, and Property Display Status custom attributes. Make sure to place the Calculated ECProperty Specification custom attribute in the OpenPlant_3D_Supplemental_Modeling schema.
Enter the following expression in the Calculated ECProperty Specification custom attribute, and on
the ECExpression field.
IIF(this.NOMINAL_SIZE="0.25''", "1/4''", IIF(this.NOMINAL_SIZE="0.5''", "1/2''", IIF(this.NOMINAL_SIZE="0.75''", "3/4''", IIF(this.NOMINAL_SIZE="1.25''","1-1/4''", IIF(this.NOMINAL_SIZE="1.5''","1-1/2''", IIF(this.NOMINAL_SIZE-"2.5''","2-1/2''", IIF(this.NOMINAL_SIZE="3.5''","3-1/2''", this.NOMINAL_SIZE)))))))
NOTE: For the actual inch marks use two single quotes. Seen in RED above.
C. Testing the Configuration Changes
Now that user have the configuration complete, user need to test and verify the results.
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.