Loading Hydraulics and Hydrology products into a custom MicroStation workspace

Applies To 
Product(s): WaterGEMS, WaterCAD, HAMMER, SewerCAD, StormCAD, SewerGEMS, CivilStorm, PondPack
Version(s): CONNECT Edition, V8i
Area:  Installation
Original Author: Jesse Dringoli, Bentley Technical Support Group


Is it possible to load a Hydraulics and Hydrology product, such as StormCAD, in a custom MicroStation workspace?


It is possible to include OpenFlows product functionality into a custom workspace by making some adjustments to some of the files associated with the workspace. The general steps are similar whether you are using MicroStation CONNECT Edition or MicroStation V8i, with the differences being mainly related to the terminology used. Below are the steps for both versions of MicroStation.

MicroStation CONNECT Edition 

When using an OpenFlows product with MicroStation CONNECT Edition, a specific Workspace related to the Product will be need to be used in order to apply the product functionality. For example, for SewerGEMS for MicroStation CONNECT Edition, the Workspace will be OpenFlows and the Workset will be SewerGEMS. If you change these in SewerGEMS for MicroStation, the SewerGEMS functionality will be lost. 

However, it is possible to edit the custom workspace's CFG file to include the OpenFlows product information. Open the SewerGEMS.cfg file found here: C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\OpenFlows\Worksets. Copy the code from this file and edit the custom workspace CFG file to include this code.

When you do this, when you switch to the custom workspace, the OpenFlows functionality will still be included.

Note: MicroStation CONNECT Edition integration is available starting with release of the Storm-Sewer products and starting with of the Water products. 

MicroStation V8i

When using an OpenFlows product with MicroStation, a specific User and Project with settings related to the product is used in order to include the product functionality. For example, if you are using StormCAD for MicroStation V8i, you will see the User and Project default to "stormcad". If you were to change to a custom workspace, the StormCAD functionality would no longer be available. However, it is possible to load an OpenFlows product in a custom MicroStation workspace.

First, you will need to copy the lines of code from the OpenFlows product's Project Configuration File and paste into your configuration file/workspace.

For details, read the below Troubleshooting MicroStation Integration wiki, with special attention to "2) PCF file". Open the PCF file in a text editor and copy the lines near the top that look similar to this:

%if !exists ($(MS_STORMCAD_ROOTDIR)config/appl/stormcad.cfg)
%error Unable to locate required $(MS_STORMCAD_ROOTDIR)config/appl/stormcad.cfg file, exiting...
%include $(MS_STORMCAD_ROOTDIR)config/appl/stormcad.cfg

These lines can be placed on your specific user UCF file or Project PCF file, or incorporated into your custom workspace.

Note: This workflow will also work if you want your program to work inside some Bentley products that work inside of MicroStation, such as OpenUtilities.

See Also

Troubleshooting MicroStation Integration