How to use Format Specifier in OpenPlant Isometrics Manager


Applies To
Product(s):OpenPlant Isometrics Manager
Version(s):08.11.11.XXX (SS6)
Environment:Windows 7/8.1/10 (64 bit) & Others
Area:Settings/Attributes
Subarea:Format Specifier- Isometric report
Original Author:Rahul Kumar, Bentley Product Advantage Group

To Discuss various Format specifier to be used in OpenPlant Isometrics Manager. 

Background

In OpenPlant Isometrics Manager, various properties/attributes requires a unique format to display in isometrics drawing. Below are few case which help user to assign properties with specific format.  It can be experienced using both OpenPlant modeler and AutoPlant Modeler. This has been shown in context with OpenPlant Modeler and OpenPlant Isometrics Manager. However similar approach could be utilized for AutoPLANT modeler and OpenPlant Isometrics Manager, with checking the style folder with different storage paths. Many values are specified in decimal inches, that are required to display it in Feet-Inch-Fraction format. Below example will show it for Olets here.

The different display output formats for a single property make it difficult to use a global format configuration. Therefore a method has been designed to directly specify the display format when the property in question is referenced. In OpenPlant Isometrics Manager a component property is referenced in one of two ways depending on the use scenario

Internally each property is stored as a string and with the above references a trimmed string is output. A format specifier can be added to the property name separated by a colon.

<property name>:<format specifier>

The specifier character defines how the property is interpreted;



[flags][width][.precision]specifier

The sub specifier flags, width and precision are optional and follow these conventions.

See Examples below

Example: the property SHEETNO = 2 can be formatted as integer

Example: the property angle = 89.250089 can be output as

Example: the property LENGTH = 31.675 can be output as

Example: the property CM1 = BW can be formatted as string

Steps to Accomplish

  1. Launch OpenPlant Isometrics Manager.
  2. Select Project unit, say OPModeler_Imperial here and click OK.
  3. Click on ‘Configuration’ Icon to launch Isometric configuration dialog box.



  4. From Isometric configuration dialog box, select “User Labels”. Check Olet defined here.
    Text used here as : $(SIZE2)” x $(SIZE1)”



  5. Check Isometrics Below.  Some property displays in decimal even after implementation of IMPERIAL Format through style.cfg file.



  6. Change text as per image shown below.
    Text : $(SIZE2) x $(SIZE1:I)



    Note –
    User can also try specifier F for Feet-Inch-Fraction display.

  7. Save labels and check result. 

See Also

User can also check Display Format Specifier topic from help file menu.

communities.bentley.com/.../12641.modifying-the-iso-content

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!