I'm using the Bentley configuration explorer to set up a new OpenRoads config for our organization.
In this example I've configured a workspace "IB" and added the variable
CIVIL_ORGANIZATION_NAME = NLCS
and further on the Bentley config variables are included
%if exists ($(CIVIL_ORGANIZATION_ROOT)$(CIVIL_ORGANIZATION_NAME).cfg) % include $(CIVIL_ORGANIZATION_ROOT)$(CIVIL_ORGANIZATION_NAME).cfg
When I start OpenRoads in this way both IB workspace and the NLCS Organization-Civil cfg's (where most of our stuff is located) are loaded. Everything works as it should.
But when I run the same config with the Bentley Configuration Explorer the Workspace level gets loaded but not the Organization-Civil?
It looks like the configuration explorer is not able to load the Organization-Civil level from the workspace level? Anyone any thoughts?
What is the error that is given? I see 'Errors : 1' in the right side.
Obvious question - Does the %if have a corresponding %endif ?
The error comes from a line in the "do not change" section which Bentley provides. Even if you open a standard Bentley config you get some errors in the configuration explorer. This in itself is strange but not the source of the problem I think. And yes, there is an %endif statement :-)
What baffles me is that when I open ORD the Organization-Civil level gets loaded. For example:
I've added a vba search directory at the Organization-Civil. See picture below taken directly from ORD. You can see that there are 4 levels loaded, the last at the organization-Civil level:
If I look at the same variable in the configuration explorer I get only 3 results. The Organization-Civil level is completely ignored.
I will try to find out what is going on.
Looking at your first screen shot, it looks like your 'IB.cfg' is not calling the 'NLCS.cfg' - in my case, 'UK Projects = IB', and 'UK Standaards = NLCS'. I also do not see the WorkSet file listed - Demo.cfg for me.
In my 'UK Projects.cfg', I amended the %IF statements (that you showed in your first post) which loaded the Organisation standards to stop an error due to a space in the path which Configuration Explorer mentioned. I added to variables to the file.
STN_IMPERIAL = _Civil Default Standards - ImperialSTN_METRIC = _Civil Default Standards - Metric
%if exists ($(CIVIL_ORGANIZATION_ROOT)$(CIVIL_ORGANIZATION_NAME).cfg) % include $(CIVIL_ORGANIZATION_ROOT)$(CIVIL_ORGANIZATION_NAME).cfg%elif exists ($(CIVIL_ORGANIZATION_ROOT)$(STN_METRIC).cfg) CIVIL_ORGANIZATION_NAME = $(STN_METRIC) % include $(CIVIL_ORGANIZATION_ROOT)$(CIVIL_ORGANIZATION_NAME).cfg%elif exists ($(CIVIL_ORGANIZATION_ROOT)$(STN_IMPERIAL).cfg) CIVIL_ORGANIZATION_NAME = $(STN_IMPERIAL) % include $(CIVIL_ORGANIZATION_ROOT)$(CIVIL_ORGANIZATION_NAME).cfg%endif
FYI - I have just been told that "No it is not currently supported. There is some new work coming in MicroStation/PowerPlatform 15 that should address this." - regarding Organisation-Civil.