company configuration

Hi,

we use a company configuration on a domain server,

now I've defined:    _USTN_INSTALLED_CONFIGURATION=B:/Connect/Configuration/ #signum       in the main msdir.cfg  in the program folder.

Is this the right place to define this, or is there a better way?

second problem:
while we are in the office, the Bentley data is on our B:\ drive,
home-working: use a VPN connection to the server, B:\ drive is connected,
on the road: we have a local limited copy ( of the "configuration directory) on the laptop

haw to set up the cfg  (what is the best place & cfg file)  to ask:      " if    B:\  is connected  : use this B:\ directory      else:   use the local configuration

win10pro / OBD 10.06.03.04
regards Rik

Parents
  • Hi Rik,

    _USTN_INSTALLED_CONFIGURATION points to the default configuration installed with the product. This is not the appropriate variable for your purpose and we recommend that it is not changed.

    The variable to work with is _USTN_CUSTOM_CONFIGURATION set in C:\ProgramData\Bentley\<application name>\Configuration\ConfigurationSetup.cfg.

    Once ConfigurationSetup.cfg has been edited appropriately the application will be redirected to the network configuration for all other custom configuration, resources etc. It is not necessary to modify any of the system configuration files elsewhere on the C:\drive.

    Please see these wiki articles for more information on this file and it's behaviour:

    CONNECT Edition - What does _USTN_USER_CONFIGURATION do?

    CONNECT Edition - Configuration Tips : Should I edit ConfigurationSetup.cfg?

    In the [General] section of ConfigurationSetup.cfg you can include something like this:

    [General]
    %if exists (B:\Connect\Configuration\)
    # use network configuration
    _USTN_CUSTOM_CONFIGURATION=B:\Connect\Configuration\

    %else
    # use local drive configuration
    _USTN_CUSTOM_CONFIGURATION=C:\Connect\Configuration\

    %endif

    I need to check this syntax with a similar example,, but that demonstrates the principle.

    Marc

  • thanks Mark,

    can you update the links, because the don't work

    This configuration works well, but:

    I 've defined:  _USTN_HOMEROOT   =  $(_USTN_ORGANIZATION)USERS/$(USERNAME)/$(computername)/
    so my prefs are saved on the server (or local) in a directory with my computername

    if the previous session was on the server, and the next is local,
    these prefs are not found,
    so OBD starts with default settings and my second screen, my dockings are gone

    can this be solved too

    Regards Rik

  • Hi Rik,

    I did a quick test just now to get the syntax right. The following example will use configuration AA, then if folder C:/AA_Configuration/ is unavailable will go to BB, then if that is unavailable will undefine _USTN_CUSTOM_CONFIGURATION and go to the Bentley Example configuration.

    [General]
    %if exists (C:/AA_Configuration/)
    _USTN_CUSTOM_CONFIGURATION = C:/AA_Configuration/
    %else
    %if exists (C:/BB_Configuration/)
    _USTN_CUSTOM_CONFIGURATION = C:/BB_Configuration/
    %endif
    %else
    _USTN_CUSTOM_CONFIGURATION =
    %endif

    If your example this would be:

    [General]
    %if exists (B:\Connect\Configuration\)
    # use network configuration
    _USTN_CUSTOM_CONFIGURATION=B:\Connect\Configuration\

    %else
    # use local drive configuration
    %if exists (C:\Connect\Configuration\)
    _USTN_CUSTOM_CONFIGURATION=C:\Connect\Configuration\
    %endif
    %else
    # revert to Bentley example configuration
    _USTN_CUSTOM_CONFIGURATION = 
    %endif

    Regarding preferences, you could try locating them in a OneDrive or similar folder.

    The links are updated, don't know what happened there.

    Marc

Reply
  • Hi Rik,

    I did a quick test just now to get the syntax right. The following example will use configuration AA, then if folder C:/AA_Configuration/ is unavailable will go to BB, then if that is unavailable will undefine _USTN_CUSTOM_CONFIGURATION and go to the Bentley Example configuration.

    [General]
    %if exists (C:/AA_Configuration/)
    _USTN_CUSTOM_CONFIGURATION = C:/AA_Configuration/
    %else
    %if exists (C:/BB_Configuration/)
    _USTN_CUSTOM_CONFIGURATION = C:/BB_Configuration/
    %endif
    %else
    _USTN_CUSTOM_CONFIGURATION =
    %endif

    If your example this would be:

    [General]
    %if exists (B:\Connect\Configuration\)
    # use network configuration
    _USTN_CUSTOM_CONFIGURATION=B:\Connect\Configuration\

    %else
    # use local drive configuration
    %if exists (C:\Connect\Configuration\)
    _USTN_CUSTOM_CONFIGURATION=C:\Connect\Configuration\
    %endif
    %else
    # revert to Bentley example configuration
    _USTN_CUSTOM_CONFIGURATION = 
    %endif

    Regarding preferences, you could try locating them in a OneDrive or similar folder.

    The links are updated, don't know what happened there.

    Marc

Children