Bentley Configuration Explorer - Critical Error in OpenRoads Designer Training and Examples WorkSpac


Product(s):Bentley Configuration Explorer
Version(s):CONNECT
Area: Workspace

 

Problem:

When using the Bentley Configuration Explorer to work with the OpenRoads Designer "Training and Examples" workspace, the Configuration Explorer issues a Critical Error : "There was a critical error raised in Training-Imperial.cfg on line Training-Imperical.cfg.  %if exists (C:\Bentley Training)"

Solution:

This critical error in Configuration Explorer is issued because it does not (currently) allow a space to be used in any line using an "exists" command.  For example, in the above error message, the path specified in the %if exists line is "C:\Bentley Training" which contains a space.  

To workaround this issue, the user can define a variable which does not contain spaces to use in place of the path that does contain them on the 'exists' line of the cfg.  For example, create a variable named BENTLEY_TRAINING = Bentley Training, then use the variable on the %if exists line: %if exists (C:\$(BENTLEY_TRAINING))

EXAMPLE:

Old config lines:

%if exists (C:/Bentley Training/)
  MS_DEF = C:/Bentley Training/
%elif exists (D:/Bentley Training/)
  MS_DEF = D:/Bentley Training/
%else
  MS_DEF = $(_USTN_WORKSETROOT)/dgn/
%endif

 

New config lines:

BENTLEY_TRAINING = Bentley Training
%if exists (C:\$(BENTLEY_TRAINING))
MS_DEF = C:/Bentley Training/
%elif exists (D:\$(BENTLEY_TRAINING))
MS_DEF = D:/Bentley Training/
%else
MS_DEF = $(_USTN_WORKSETROOT)/dgn/
%endif

In this example, the folder name that contains a space "Bentley Training" is replaced with a variable name that does not contain a space "BENTLEY_TRAINING" but ultimately points to the same path after the variable is resolved.

Note: Other configuration files will require editing as well.