How to Hide Specific Character from String by using Hook.ini


Applies To
Product(s):OpenPlant Isometrics Manager CONNECT Edition
Version(s):10.00.XX.XX
Environment:Windows 8.1/10 (64 bit)
Area:Settings and Attributes
Subarea: 
Original Author:Abhijit Bute, Bentley Product Advantage Group

Background

While generating Isometric Equipment nozzle continuation shows Equipment information multiple times, User may have requirement to hide Equipment Name from nozzle tag.

 Refer above image Nozzle Tag showing VH-236-N1 after implementing following steps user will get nozzle tag N1

Steps to Accomplished 

  1. Navigate to project location and select isometric working style.
    For ex: C:\ProgramData\Bentley\Plant V8i\Bentley Plant V8i Projects\SAMPLE_IMPERIAL\Config\OpenPlant\Isometrics\styles\As-Built\config
  1. Make new text file add following entries
    powershell -Command "(Get-content -Path '%L00FILE%') -replace '(NOZZ:)(.*-)(.*$)', '$1 $3' | Out-File -Encoding "UTF8" '%L00FILE%'" 


  1. Save the file as Nozzle.txt and change extension to .bat
  2. Open Hook.ini file.
  3. Add following entries.
    RUN = "$(IE_CONF)/nozzle.bat"


  1. Generate isometric to review the result.

                 

See Also

communities.bentley.com/.../autoplant---openplant-isometrics-manager-connect-edition

Still a Problem?

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. 

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!

communities.bentley.com/.../autoplant---openplant-isometrics-manager-connect-edition