Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenBuildings | AECOsim | Speedikon
  • Product Communities
  • Building
  • OpenBuildings | AECOsim | Speedikon
  • Cancel
OpenBuildings | AECOsim | Speedikon
OpenBuildings | AECOsim | Speedikon Wiki Configuring Multiple Configuration Folders
    • Building Design - Wiki
    • -OpenBuildings Designer
      • +What's New
      • FAQ - OpenBuildings Designer CONNECT Edition
      • Released Versions - OpenBuildings Designer
      • IFC4 Self-certification
      • +Installation - OpenBuildings Designer
      • +Migration - Upgrading from earlier versions
      • -Configuration - OpenBuildings Designer
        • "Error parsing Settings_Frames.xml" displays in the Message Center
        • "No WorkSet Alert" message when double-clicking a DGN file
        • Attach a custom WorkSpace and WorkSet located on another drive
        • Configuration Variables Dialog is enhanced in CONNECT Edition
        • +Configuration Variables: New/Deprecated/Superseded for AECOsim Building Designer
        • +Configuration Variables: New/Deprecated/Superseded for the CONNECT Platform/MicroStation
        • Configuring Multiple Configuration Folders
        • Configuring the Datasets Root Folder Location
        • CONNECT Edition - Create a new WorkSet
        • CONNECT Edition - Create a new WorkSet template
        • CONNECT Edition - Create a new WorkSpace
        • CONNECT Edition - Create Organization folders
        • Dataset related error messages after installing Update 7
        • How can I limit OpenBuildings Designer to use only my custom level libraries?
        • Removing unused active levels from the Level Manager
        • Resolving issue of Level Manager in sheet model
        • Restricting the available WorkSpace and WorkSet
        • TFDIR_SETTING points to an invalid path after opening the file
        • Two "default.lay" errors after Workspace update
        • Update 9 - Changes to variables ATFFILE_DRAWINGRULES, STFFILE_DRAWINGRULES and HVACFILE_DRAWINGRULES
        • What Configuration changes have been made between Power Platform V8i and CONNECT Edition?
        • What does the cache.ufc file do?
      • +General - OpenBuildings Designer
      • +User Interface - OpenBuildings Designer
      • +Architectural Design - OpenBuildings Designer
      • +Structural Design - OpenBuildings Designer
      • +ProStructures Interoperability - OpenBuildings Designer
      • +Electrical Annotation and Design - OpenBuildings Designer
      • +Datasets and Content - OpenBuildings Designer
      • +DataGroup System - OpenBuildings Designer
      • +Floor Management - OpenBuildings Designer
      • +Grid Systems - OpenBuildings Designer
      • +Drawing Views - OpenBuildings Designer
      • +Annotation - OpenBuildings Designer
      • +Import/Export- OpenBuildings Designer
      • +ProjectWise Integration - OpenBuildings Designer
      • +Customization - OpenBuildings
      • +Platform Tools - OpenBuildings Designer
      • +Plumbing Design
      • Electrical Designer
      • +Learning Tips
      • +HVAC Design - OpenBuildings Designer
      • +Bentley i-model Composition Server
      • OpenBuildings Designer - Support for IFC Singapore
      • +OpenBuildings Designer Accreditation Program
    • +OpenBuildings Energy Simulator
    • +GenerativeComponents
    • OpenBuildings Station Designer
    • +OpenBuildings Speedikon
    • +OpenBuildings Speedikon + Bentley Speedikon V8i
    • +Bentley Facilities Space Planner CONNECT Edition
    • +AECOsim Building Designer
    • +iModel Plugin for Revit
    • +Social Distance Assessments
    • Working from home with OpenBuildings products
    • Working from home with Speedikon
    • +Special Interest Group (SIG) FAQs
    • +Structural Modeler_PS
    • +Configuration Explorer
    • +Legacy Products

     
     Questions about this article, topic, or product? Click here. 

    Configuring Multiple Configuration Folders

      Product(s): OpenBuildings Designer
      Version(s): CONNECT Edition
      Environment: N/A
      Area: Configuration
      Subarea: Workspaces

    Problem

    I have multiple configuration locations. What would be the best way to switch between the configuration locations on the fly?

    Solution

    This can be done using the -WS command line argument. The following example can show how this can be used for this purpose.

    Let us consider that there are two configuration locations on the D: drive (the configurations can reside on different drives, the path, used later, would change based on that), D:\CustomConfig1\ and D:\CustomConfig2\. Under each of these folders, there must be a Workspaces folder and an Organization folder. For this example, let us consider that we have the following folders in each of the above mentioned locations:

    1. CustomWorkspaces
    2. CustomOrg

    So, the folders would like these:

      

    Under the CustomWorkspaces folder for each of the configuration locations, there should be the workspaces and their corresponding cfg files. In case otherwise, appropriate configuration variables should be modified correctly.

    At this stage, there should be a configuration file that defines the Workspaces folder in this location for each of the configuration locations. We would need to add a cfg file and name it WorkSpaceSetup.cfg. This file should contain the following code:

    #-------------------------------------------------------------------------------|
    # The following code is for configuring the Organization folder. This can vary  |
    # depending on the name and the location of the Organization folder. In the     |
    # following example, it is considered that _USTN_CONFIGURATION points to        |
    # the CustomConfig1 or CustomConfig2 (whichever is applicable) folder and the   |
    # Organization folder is under this folder with the name CustomOrg.             |
    #-------------------------------------------------------------------------------|
    
    MY_ORGANIZATION_LOCATION = $(_USTN_CONFIGURATION)CustomOrg/
    
    %if defined (MY_ORGANIZATION_LOCATION) && exists ($(MY_ORGANIZATION_LOCATION))
      _USTN_ORGANIZATION = $(MY_ORGANIZATION_LOCATION)
    %endif
    
    #-------------------------------------------------------------------------------|
    # The following code takes care of the Workspaces location just as the previous |
    # one does for the Organization folder. The same considerations as above are    |
    # made here as well. This can change depending on the folder structure.         |
    #-------------------------------------------------------------------------------|
    
    MY_WORKSPACES_LOCATION = $(_USTN_CONFIGURATION)CustomWorkspaces/
    
    %if defined (MY_WORKSPACES_LOCATION) && exists ($(MY_WORKSPACES_LOCATION))
       _USTN_WORKSPACESROOT = $(MY_WORKSPACES_LOCATION)
    %endif
    
    

    In addition to the above code, it can also contain further modifications in case the workspaces and their corresponding cfg files are not residing under the CustomWorkspaces (i.e., Workspaces) folder.

    It might be noted at this point that we have considered that the configuration locations are being resolved by _USTN_CONFIGURATION. That is because of the following steps.

    At this stage, we need to go to the installed configuration location, which is, typically, at C:\ProgramData\Bentley\OpenBuildings CONNECT Edition\Configuration\. We need to open the file called ConfigurationSetup.cfg and put a "#" before, typically, line number 21, which says "_USTN_CUSTOM_CONFIGURATION=". Then we would need to modify, typically, line number 26, so that the end result says, "_USTN_CONFIGURAITON = $(_USTN_CUSTOM_CONFIGURATION)"

    The following image shows how it should look after the changes:

    1. In Notepad++ using the Bentley Configuration Language:

    2. In Notepad:

    In the last part of this exercise, we need to create new shortcuts of OpenBuildings Designer on the Desktop for each of the configuration locations. For our example, we would need two. We need to go to the properties of each of the shortcuts and modify the Target field as follows:

    1. Put a space after the existing value in the field.
    2. Enter: -ws_USTN_CUSTOM_CONFIGURATION=<full path to your custom configuration location>
    3. In our example, the full paths are:
      1. D:\CustomConfig1/
      2. D:\CustomConfig2/

    After the modification, it should look like the following:

    If all went well, double clicking the shortcuts would directly show the list to the workspaces and worksets that are available in the corresponding configuration folder.

    Please Note: One of the few common reasons why this might not be working correctly is the configuration downstream from this point, e.g., configuration of the Workspaces, Worksets and their Standards. The second one would be typos while assigning paths to the variables.

    • CONNECT Edition
    • OpenBuildings
    • workspace
    • AECOsim Building Designer CONNECT Edition
    • AECOsim Building Designer
    • Configuration
    • Share
    • History
    • More
    • Cancel
    • Satadal Dhar Created by Bentley Colleague Satadal Dhar
    • When: Tue, Jul 2 2019 1:25 AM
    • Satadal Dhar Last revision by Bentley Colleague Satadal Dhar
    • When: Tue, Jul 2 2019 1:29 AM
    • Revisions: 3
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies