How to Disable Default Connection with Model Server repository


Applies To
Product(s):OpenPlant ModelServer
Version(s):08.11.09.XXX (SS5) | 08.11.11.XXX (SS6)
Environment: Windows 7/8.1/10 (64 bit)
Area: ProjectWise
Subarea:
Original Author:Harpreet Singh, Bentley Product Advantage Group

Background

When we have setup the OpenPlant Model Server repository in ProjectWise and when open any file, by default it connects to the repository. This article will explain how the default connection with OPMS can be disabled with various options.


There is a configuration variable in opms.cfg file in C:\Program Files (x86)\Bentley\OpenPlantModeler V8i\OpenPlantModeler\config\appl folder which helps in disabling the default connection with OPMS repository.

OPMS_DEFAULT_CONNECTION_MODE, By default it's value is 1 which means default connection mode.

Disable the connection for specific project in PW Managed Workspace

  1. Launch ProjectWise Admin and login to the datasource.

  2. Go to Project CSB and double click on the project to open the properties dialog.



  3. In the Properties dialog switch to Configuration tab and click on Add button.



  4. Add the configuration variable in the dialog box as shown below:



  5. Click on Add button in the same dialog and set the operation type to assignment, Value type to String and value to 2.



  6. Click OK on subsequent dialogs and click APPLY on properties dialog to apply the changes.



  7. In PW explorer, re-login to the datasource and open any file. It will open without connection to OPMS.

Disable the Model Server Connection in Standalone Mode

By default when you open a model in standalone mode, you see dialog to connect to the repository. But if you don't want to connect to the repository then you can use the same configuration variable to disable the dialog box.

  1. Open the model in OPM.

  2. Go to Workspace>Configuration.

  3. Locate OPMS_DEFAULT_CONNECTION_MODE in the list and edit it.

  4. Change the value to 2 and save it.

Disable Default Connection in OpenPlant Modeler SS6

  1. Launch ProjectWise Admin and login to the datasource.

  2. Go to Project CSB and double click on the project to open the properties dialog.



  3. In the Properties dialog switch to Configuration tab and click on Add button.



  4. Add Variable CORE_OPMS_ADAPTER as shown below.



  5. Click Undefine button and click Yes in the next dialog.



  6. Add another variable CORE_OPMS_PLUGIN and undefine it.



  7. Similarly add two more variables given below and undefine them.

    OPM_OPMS_ADAPTER
    OPMS_UI_TASKS

    It should look like this in the configuration dialog.



  8. Apply the changes and verify the result.

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!