How to Change BOM Text to Upper Case using Hook.ini File


Applies To 
Product(s):OpenPlant Isometrics Manager
Version(s):08.11.11.224 (SS6)
Environment: Windows 7/8.1/10( 64 bit)
Area: Settings/Attributes
Subarea: Text and Annotation Settings
Original Author:Rahul Kumar, Bentley Product Advantage Group

To change BOM text to upper case in OpenPlant Isometrics Manager.

Background

In OpenPlant Isometrics Manager, as per project requirement by user, BOM Text should display in upper case. See default BOM output. 

          

With current SS6 version of OpenPlant Isometrics Manager, hook.ini file provides the ability to generate BOM with Upper case. Below are the steps to describe the solution.  

OpenPlant Modeler & OpenPlant Isometrics Manager

Steps to Accomplish

  1. Launch OpenPlant Isometrics Manager.
  2. Select Project unit, say OPModeler_Metric here and click OK. See image below.



  3. Click on Configuration Icon to launch Isometric configuration dialog box.



  4. From Isometric configuration dialog box, select Advanced node and click on Explore Style option to allow user to navigate to the style folder.



  5. Select As-Built folder and open hook.ini file in notepad or Notepad++. 



  6. Check for variable under [0100] & remove ; sign to enable this expression. 



  7. After removing the color of this line would turn to black. See image below. 



  8. Save & Close Schema.
  9. In style folder create a file as hook.bat & add below expression to it.

    [0100]

    RUN = $(IE_CONF)hook100.bat

    powershell -Command "(Get-content -Path '%L00FILE%').ToUpper() | Out-File '%L00FILE%' -encoding 'UTF8'"



  10. Save & close file.
  11. Generate Isometrics & verify results. See image below. 

See Also

communities.bentley.com/.../12638.modifying-text-and-annotation-settings

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!