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

  • Hi Rik,

    My immediate reaction is that I would put this portion in the WorkSpaceConfig.cfg in both B and A drives, however let me read it through properly and get back to you tomorrow.

    Marc

  • Hi Mark,

    thanks for the replay,

    I have tried this but  after placing the %undef

    I have a critical error: (configuration explorer) - can not start

    where can I place this line to make this working (Ive attached my configurationsetup.cfg)

    ConfigurationSetup.cfg

  • HI Rik,

    Sorry I missed that point.

    Try something like this in your WorkSpaceConfig.cfg (the %undef is always required to clear the previously set value in this case):

    %undef _USTN_USERCFG
        _USTN_USERCFG = $(_USTN_HOMEPREFS)/Personal.ucf
    _USTN_HOMEROOT = <MyNetworkSharePath>/BentleyUserPrefs/OBD_User/

    You could use the USERNAME to construct a path per user:

    %undef _USTN_USERCFG
        _USTN_USERCFG = $(_USTN_HOMEPREFS)/Personal.ucf
    _USTN_HOMEROOT = <MyNetworkSharePath>/OBD_Users/$(USERNAME)/

    The personal.ucf must exist in in this location before starting the application, easiest thing to do is just copy your existing preferences to the new folder.

    There is some more info in CONNECT Edition - Configuration Tips : User Preferences in OneDrive or Other Locations

    Marc

  • the "custom configuration" works well on most installations, thanks for clearing this out.

    but I have still a problem with the "   _USTN_HOMEROOT   =  $(_USTN_ORGANIZATION)USERS/$(USERNAME)/$(computername)/ "

    starting up OBD (u6) does not look into the settings on the server but stays on the local machine,
    while starting, the "homeroot" is redefined to store the settings on the server,
    but the user interface and a lot of settings are already loaded and are not redirected to the server
    so the settings done when active are saved to the server (homeroot)
    but they are not available at startup.

    Every time starting up, some settings are lost, because the settings directory for reading and saving are not the same.

    Where to define the homeroot variable to load the user interface & preferences  from the server before starting up

     I like to work on 2 screens,but OBD refuses to start up like I set in the preferences.

    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