I am going through my debug file, and I'm still sorting out configuration variables.
In msconfig.cfg I see:
#---------------------------------------------------------------------- # Include the workset configuration file if _USTN_WORKSETNAME defined. # _USTN_WORKSETNAME can be set by (in order of priority): # 1) -ww command line option. # 2) operating system environment variable. # 3) configuration variable. #---------------------------------------------------------------------- %level System %if defined (_USTN_WORKSETNAME) && exists ($(_USTN_WORKSETSROOT)$(_USTN_WORKSETNAME).cfg) _USTN_WORKSETCFG = $(_USTN_WORKSETSROOT)$(_USTN_WORKSETNAME).cfg %endif #---------------------------------------------------------------------- # iF _USTN_WORKSETCFG is not defined. # check if active configuration has "NoWorkSet.cfg" # if active configuration contains "NoWorkSet.cfg" define it to _USTN_WORKSETCFG # else # define _USTN_WORKSETCFG with the "NoWorkSet.cfg" present in the delivered configuration #---------------------------------------------------------------------- %if !defined (_USTN_WORKSETCFG) % if exists ($(_USTN_WORKSPACESROOT)NoWorkSpace/NoWorkSet.cfg) _USTN_WORKSETCFG : $(_USTN_WORKSPACESROOT)NoWorkSpace/NoWorkSet.cfg % else _USTN_WORKSETCFG : $(_USTN_INSTALLED_CONFIGURATION)WorkSpaces/NoWorkSpace/NoWorkSet.cfg % endif _USTN_HAVEWORKSET = 0 %else _USTN_HAVEWORKSET = 1 %endif %if exists ($(_USTN_WORKSETCFG)) % include $(_USTN_WORKSETCFG) level WorkSet %endif
In my debug file, I see this:
(System): _USTN_WORKSETCFG=$(_USTN_WORKSETSROOT)$(_USTN_WORKSETNAME).cfg [M:\Bentley\ORD\Configuration\Worksets\.cfg]
This is very obviously not a viable workset cfg file. This faulty definition is confirmed in the summary of values at the bottom of the debug
_USTN_WORKSETCFG : System = M:\Bentley\ORD\Configuration\Worksets\.cfg : Application = (null) : Organization = (null) : WorkSpace = (null) : WorkSet = (null) : Role = (null) : User = (null)
but back to the debug itself, directly following the definition of _USTN_WORKSETCFG, I see:
Processing macro file [M:\Bentley\ORD\Configuration\Worksets\21-XX_KyTest.cfg]
Which is indeed the proper workset configuration. _USTN_WORKSETNAME is indeed correctly defined at the user level
I also see several other "workset" variables defined in msconfig, but not adapting to any variables defined later in the process.
I feel very confused. Can someone help me understand whether variables that may not exist when msconfig.cfg is run can be defined later, and revise the variable as defined, or if I just need to explicitly define them all "at level" as I go through.
I had thought I might be able to use a pared down workset cfg by "predefining" a number of variables based on _USTN_WORKSETNAME and _USTN_WORKSETROOT, but I wonder if that variable is defined too late for the bulk of my definitions.
I see what you see if I let MicroStation use the _USTN_WORKSETNAME and _USTN_WORKSPACENAME from my Personal.ucf. If I modify my icon to use -wkWorkspaceName -wwWorksetName then it works right from the beginning. (I also see the same null behavior for workspacename.cfg)
The user cfg is included right before the workspacecfg & worksetcfg variables are set but it's included at the User level. I'm guessing that may be why it doesn't get reported accurately in the debug? I assume this is some kind of debug error rather than an actual cfg file processing error?
For example my debug shows my personal.ucf being loaded and the workset/workspace names being set, then reports the workspace cfg file with jus that .cfg filename but then shows the Example.cfg for the workspace loading.
Processing macro file [C:\Users\kvanhaaren\AppData\Local\Bentley\MicroStation\10.0.0_Kevin\prefs\Personal.ucf] (User): _USTN_USERDESCR=User [User] (User): _USTN_WORKSETNAME=MetroStation [MetroStation] (User): _USTN_WORKSPACENAME=Example [Example] End of macro file [C:\Users\kvanhaaren\AppData\Local\Bentley\MicroStation\10.0.0_Kevin\prefs\Personal.ucf] Starting skip to endif, [C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\config\msconfig.cfg], line 341, depth = 0. endif, [C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\config\msconfig.cfg], line 343, depth = 0. (System): _USTN_WORKSPACECFG=$(_USTN_WORKSPACESROOT)$(_USTN_WORKSPACENAME).cfg [C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\.cfg] Processing macro file [C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\Example.cfg] (WorkSpace): MS_DGNLIBLIST=$(_USTN_SYSTEMROOT)\dgnlib\*.dgnlib;$(_USTN_SYSTEMROOT)\dgnlib\DrawComp\*.dgnlib;$(_USTN_WORKSPACESTANDARDS)Dgnlib\*.dgnlib;$(_USTN_WORKSETSTANDARDS)Dgnlib\*.dgnlib;$(_USTN_ORGANIZATION)dgnlib\*.dgnlib;$(_USTN_WORKSPACESTANDARDS)DgnLib\*.dgnlib [C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\Default\dgnlib\*.dgnlib;C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\Default\dgnlib\DrawComp\*.dgnlib;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\Standards\Dgnlib\*.dgnlib;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\WorkSets\Standards\Dgnlib\*.dgnlib;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\Organization\dgnlib\*.dgnlib;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\Standards\DgnLib\*.dgnlib] (WorkSpace): MS_GUIDGNLIBLIST=$(_USTN_WORKSPACESTANDARDS)Dgnlib\GUI\*.dgnlib;$(_USTN_WORKSETSTANDARDS)Dgnlib\GUI\*.dgnlib;$(_USTN_SYSTEMROOT)GUI\Archive\*.dgnlib;$(_USTN_ORGANIZATION)dgnlib\GUI\*.dgnlib;$(_USTN_WORKSPACESTANDARDS)DgnLib\GUI\*.dgnlib [C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\Standards\Dgnlib\GUI\*.dgnlib;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\WorkSets\Standards\Dgnlib\GUI\*.dgnlib;C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\Default\GUI\Archive\*.dgnlib;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\Organization\dgnlib\GUI\*.dgnlib;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\Standards\DgnLib\GUI\*.dgnlib] (WorkSpace): MS_CELL=$(_USTN_WORKSETSTANDARDS)cell\;$(_USTN_SYSTEMROOT)cell\;$(MS_SHAREDCONTENTDIR)cell\;$(_USTN_WORKSPACESTANDARDS)cell\;$(_USTN_ORGANIZATION)cell\;$(_USTN_WORKSPACESTANDARDS)Cell\ [C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\WorkSets\Standards\cell\;C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\Default\cell\;C:\ProgramData\Bentley\connectsharedcontent\cell\;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\Standards\cell\;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\Organization\cell\;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\Standards\Cell\] (WorkSpace): MS_MACRO=$(_USTN_WORKSPACESTANDARDS)macros\;$(_USTN_WORKSETSTANDARDS)macros\;$(_USTN_ORGANIZATION)Macros\;$(_USTN_WORKSPACESTANDARDS)Macros\ [C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\Standards\macros\;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\WorkSets\Standards\macros\;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\Organization\Macros\;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\Standards\Macros\] (WorkSpace): MS_VBASEARCHDIRECTORIES=$(_USTN_WORKSPACESTANDARDS)macros\;$(_USTN_WORKSETSTANDARDS)macros\;$(_USTN_ORGANIZATION)Macros\;$(_USTN_WORKSPACESTANDARDS)Macros\ [C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\Standards\macros\;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\WorkSets\Standards\macros\;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\Organization\Macros\;C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\Standards\Macros\] End of macro file [C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\Example.cfg]
Answer Verified By: MaryB
Debug errors do not help me debug my configuration...Let me file a Service Ticket on this.
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2