How to configure AutoPLANT P&ID V8i SS2 for use with customized CATT dialogs [TN]


  
 Applies To 
  
 Product(s):AutoPLANT P&ID SELECTseries 2
 Version(s):08.11.07.60
 Environment: N/A
 Area: N/A
 Subarea: N/A
 Original Author:RonnieP and bmoberg, Bentley Technical Support Group
  

 

 

 

 

 

 

 

 

Overview

AutoPLANT P&ID V8i SS2 Version 8.11.07.60 no longer reads the custom REBCOMPDLGS.DLL from the standards folder of your project.  By default, it is now read from C:\Program Files\Bentley\Plant V8i\P&ID.  These changes were implemented to gain compatibility with Windows 7 UAC control. 

This Tech Note describes in detail the configuration changes necessary to run AutoPLANT P&ID SS2 with previously customized CATT Dialogs.

 

Procedure

To setup AutoPLANT P&ID V8i SS2 to use customized CATT dialogs the following steps will have to be implemented.

  1. Copy the C:\Program Files\Common Files\Bentley Shared\Plant V8i\REBCOMPDLGS.DLL to C:\Program Files\Bentley\Plant V8i\P&ID and register it using the REGSVR32 command.  (Start >  Run > type REGSVR32 in the run dialog and drag and drop the file into the window) NOTE: This step must be implemented on every workstation running AutoPLANT P&ID V8i SS2.

  2. Add New system environment variable (Control Panel > System > Advanced Tab) – PROGRAMDATA = C:\Program Files on each user’s workstation. NOTE: This step must be implemented on every workstation running AutoPLANT P&ID V8i SS2. Shown below: 

  3. Any previously customized Rebcompdlgs.dll files will have to be recompiled again from the user’s customized rebiscomponentdialogs.vbp Visual Basic project with binary compatibility enabled.  NOTE: This is a onetime step that must be completed by the Project Administrator. 


    Steps below to add Binary Compatibility:
    1. Browse to the customized Propdlgs folder that contains the Visual Basic code for the customized Catt Dialogs.
    2. Open the RebisComponentDialogs.vbp file.
    3. Select Project > RebisComponentDialogs Properties.
    4. In the Project Properties dialog select the Component Tab.
    5. In Version Compatibility section select “Binary Compatibility”
    6. Select the browse button and path to the Rebcompdlgs.dll just copied to C:\Program Files\Bentley\Plant V8i\P&ID\
    7. Select OK. Refer to picture below: 
    8. File > Make Rebcompdlgs.dll
    9. Save to temporary location.
  4. Browse to the ..\PROJECTNAME\STANDARDS\ folder and backup your Rebcompdlgs.dll.

  5. Copy newly compiled Rebcompdlgs.dll from the temporary location to ..\PROJECTNAME\STANDARDS\ location.

  6. Modify Project.ini with new user variable.

    1. Using notepad open the ..\PROJECTNAME\PROJECT.INI file.
    2. Add a new variable at the bottom of the [General] section of the project.ini of the project.
      USECUSTOMREBCOMP=1

      Example below:
      [GENERAL]
      APPLICATIONS=DOCMANAGER;PIPING;ISOMETRICS;ELECTRICAL;EQUIP;2DPIPING;FLATTENER;VISION;NAVIGATOR;DATAMANAGER;HOOKUPS;I&W;INSTRUMENTATION;DATASHEETS;TEMPLATEGEN;P&ID;STRUCTURAL;
      DELETETAGNUMBERS=Yes
      TAGNUMPREFIX=000
      PROJECTNAME=SS2_Test1
      PROJECTDESCRIPT=SS2_Test1
      REMOVE TAGS ON DOCUMENT DELETION=Yes
      COMPACTPROJECTMDBVALUE=20
      PROJECTID=0001
      PROJECTGUID={DCC8F728-BC50-43E2-865D-250B00A3ED90}
      SHAREDSCHEMA=0
      SHAREDSTANDARDS=0
      USECUSTOMREBCOMP=1

      Definition of Variable Value Below:

      • USECUSTOMREBCOMP=1 means P&ID will copy the REBCOMPDLGS.DLL from your ..\PROJECTNAME\STANDARDS\ folder to C:\Program Files\Bentley\Plant V8i\P&ID\.  P&ID will now run and register the dll from this location.
      • USECUSTOMREBCOMP=0 means P&ID will read directly from C:\Program Files\Bentley\Plant V8i\P&ID\ and bypass the copy from ..\PROJECTNAME\STANDARDS\ folder.

Example:
 If Project A is running a custom dll in the Standards folder and has variable = 1 on open of P&ID it will copy the dll down to the C:\Program Files\Bentley\Plant V8i\P&ID\ location.
However, if Project B has variable = 0 (or no variable at all) it will look directly at the C:\Program Files\Bentley\Plant V8i\P&ID\ location – Please note that the custom dll from Project A has already been copied here on open of Project A and Project B will appear to be looking at the custom dll from Project A.

To solve this the new variable in Project B will have to be set to 1 as well so it can use its base dll from the ..\PROJECTNAME\STANDARDS\ folder and copy it down to the C:\Program Files\Bentley\Plant V8i\P&ID\ location to overwrite Project A’s dll.  The C:\Program Files\Bentley\Plant V8i\P&ID\ can be considered a temporarily working folder for the Rebcompdlgs.dll now.

 

 

See Also

Product TechNotes and FAQs

Plant Design and Engineering - Wiki

External Links

Bentley Technical Support KnowledgeBase

Bentley LEARN Server

Comments or Corrections?

Bentley's Technical Support Group requests that you please submit any comments you have on this Wiki article in the "Comments" area below. THANK YOU!