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.04regards Rik
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
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:
%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.
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 serverso 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.
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
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
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.