OBD-U7 - No Workset? When there is

I have split my Workset area so that I can separate it into app location:

N:\14_EngineeringServices\Drafting\Admin\_CADmanage\Bentley\Site\MSCE\Client\Workspaces\Aerison\Worksets\OBD

N:\14_EngineeringServices\Drafting\Admin\_CADmanage\Bentley\Site\MSCE\Client\Workspaces\Aerison\Worksets\OPM

In my build I then set the location:

N:\14_EngineeringServices\Drafting\Admin\_CADmanage\Bentley\Site\MSCE\Client\Workspaces\Aerison\Worksets\OBD\Aerison\Standards\

from

%undef _USTN_WORKSPACENAME
_USTN_WORKSPACENAME = Aerison
%lock _USTN_WORKSPACENAME

%undef _USTN_WORKSETNAME
_USTN_WORKSETNAME = Aerison
%lock _USTN_WORKSETNAME

_USTN_WORKSPACEDESCR = Aerison Workspace
_USTN_WORKSPACEROOT = $(STD_CLIENT)Workspaces/$(_USTN_WORKSPACENAME)/
_USTN_WORKSETROOT = $(_USTN_WORKSPACEROOT)Worksets/OBD/$(_USTN_WORKSETNAME)/
%lock _USTN_WORKSETROOT
_USTN_WORKSETSTANDARDS = $(_USTN_WORKSETROOT)Standards/
%lock _USTN_WORKSETSTANDARDS

Everything is where it needs to be and the debug shows the correct paths, but when I get to the start screen it says that no worksets have been created.

Any thoughts as to why this would be?

Parents
  • It seems _USTN_PRODUCT_SHORTNAME is the culprit. It seems that when you are at the backpage (or start up), it either has wrong value, or has no value, hence the error that we see. Only once a dgn is opened that _USTN_PRODUCT_SHORTNAME got assigned the correct value.

    I can get the below arrangement to work. So lesson is to find another way to determine the software in your config. 

  • Nice pick up on the variable issue.

    So, to fix all of this, I made some changes to my std_appl.cfg file so that the STD_APP variables are set early:

    # Aerison
    #---------------------------------------------------------------------------
    # Determine MicroStation Version
    #---------------------------------------------------------------------------

    %if defined (_VERSION_10_0)
    STD_MS = MSCE
    %endif

    _USTN_DISPLAYALLCFGVARS = 1

    #---------------------------------------------------------------------------
    # Set standard configuration based upon MicroStation version
    #---------------------------------------------------------------------------

    %if exists ($(hta_sBentley)Standard/$(STD_MS)/Standards/.)
    _USTN_ORGANIZATION = $(hta_sBentley)Standard/$(STD_MS)/Standards/
    %lock _USTN_ORGANIZATION
    %endif

    %undef _USTN_USERCFG

    %if $(USERNAME) == "sforward"
    _USTN_CAPABILITY < +CAPABILITY_UI_ALWAYSSHOWADMINWORKFLOW
    %endif

    %if defined (TFDIR)
    STD_APP = OpenBuildingsCE
    %endif

    %if defined (OPM_DIR_PREFS)
    STD_APP = OpenPlantCE
    %endif

    This then flows through to my project cfg files (not the same as workset):


    %undef _USTN_WORKSPACENAME
    _USTN_WORKSPACENAME = Aerison
    %lock _USTN_WORKSPACENAME

    %undef _USTN_WORKSETNAME
    _USTN_WORKSETNAME = Aerison
    %lock _USTN_WORKSETNAME

    _USTN_WORKSPACEDESCR = Aerison Workspace
    _USTN_WORKSPACEROOT = $(STD_CLIENT)Workspaces/$(_USTN_WORKSPACENAME)/

    _USTN_WORKSETROOT = $(_USTN_WORKSPACEROOT)Worksets/$(STD_APP)/$(_USTN_WORKSETNAME)/
    %lock _USTN_WORKSETROOT

    _USTN_WORKSETSTANDARDS = $(_USTN_WORKSETROOT)Standards/
    %lock _USTN_WORKSETSTANDARDS

    _USTN_WORKSPACESROOT = $(STD_CLIENT)Workspaces/$(_USTN_WORKSPACENAME)/
    %lock _USTN_WORKSPACESROOT

    _USTN_WORKSETSROOT = $(_USTN_WORKSPACEROOT)Worksets/$(STD_APP)/
    %lock _USTN_WORKSETSROOT

    With the STD_APP variable set so early, the cfg location for Workspace and Workset is nailed and working great.

    Not ideal, but a much cleaner option than having bulk directories in the same place for every application. 



Reply
  • Nice pick up on the variable issue.

    So, to fix all of this, I made some changes to my std_appl.cfg file so that the STD_APP variables are set early:

    # Aerison
    #---------------------------------------------------------------------------
    # Determine MicroStation Version
    #---------------------------------------------------------------------------

    %if defined (_VERSION_10_0)
    STD_MS = MSCE
    %endif

    _USTN_DISPLAYALLCFGVARS = 1

    #---------------------------------------------------------------------------
    # Set standard configuration based upon MicroStation version
    #---------------------------------------------------------------------------

    %if exists ($(hta_sBentley)Standard/$(STD_MS)/Standards/.)
    _USTN_ORGANIZATION = $(hta_sBentley)Standard/$(STD_MS)/Standards/
    %lock _USTN_ORGANIZATION
    %endif

    %undef _USTN_USERCFG

    %if $(USERNAME) == "sforward"
    _USTN_CAPABILITY < +CAPABILITY_UI_ALWAYSSHOWADMINWORKFLOW
    %endif

    %if defined (TFDIR)
    STD_APP = OpenBuildingsCE
    %endif

    %if defined (OPM_DIR_PREFS)
    STD_APP = OpenPlantCE
    %endif

    This then flows through to my project cfg files (not the same as workset):


    %undef _USTN_WORKSPACENAME
    _USTN_WORKSPACENAME = Aerison
    %lock _USTN_WORKSPACENAME

    %undef _USTN_WORKSETNAME
    _USTN_WORKSETNAME = Aerison
    %lock _USTN_WORKSETNAME

    _USTN_WORKSPACEDESCR = Aerison Workspace
    _USTN_WORKSPACEROOT = $(STD_CLIENT)Workspaces/$(_USTN_WORKSPACENAME)/

    _USTN_WORKSETROOT = $(_USTN_WORKSPACEROOT)Worksets/$(STD_APP)/$(_USTN_WORKSETNAME)/
    %lock _USTN_WORKSETROOT

    _USTN_WORKSETSTANDARDS = $(_USTN_WORKSETROOT)Standards/
    %lock _USTN_WORKSETSTANDARDS

    _USTN_WORKSPACESROOT = $(STD_CLIENT)Workspaces/$(_USTN_WORKSPACENAME)/
    %lock _USTN_WORKSPACESROOT

    _USTN_WORKSETSROOT = $(_USTN_WORKSPACEROOT)Worksets/$(STD_APP)/
    %lock _USTN_WORKSETSROOT

    With the STD_APP variable set so early, the cfg location for Workspace and Workset is nailed and working great.

    Not ideal, but a much cleaner option than having bulk directories in the same place for every application. 



Children
No Data