Sheet Index Seed

I am trying to create a seed DGNws file so that all new WorkSets get a base Sheet index in them that contain project properties and folders.  I tried using the variable _USTN_WORKSETDGNWSTEMPLATE but it creates a DGNws with two indexes in it (see below). Wouldn't be an issue if I could delete one of them and rename the other but trying to do anything in them causes a crash.  Any thoughts on how I could create a seed DGNws file?

  • _USTN_WORKSETDGNWSTEMPALTE is just meant to point to the default system template.

    With the addition to use an existing WorkSet as a template:

    https://communities.bentley.com/products/microstation/b/microstation_blog/posts/configuration-installation-options-and-microstation-connect-edition-update-4

    You really only need to setup a "dummy workset" populate the sheet index with the desired folder structure, you can even have base dgns already assigned in the sheet index, and use that as the template when you create a workset.

  • _USTN_WORKSETDGNWSTEMPALTE is just meant to point to the default system template.

    I believe that is what I stated I was trying to do with it and it did not respond accordingly.  The variable is undocumented or at least I couldn't find it in help so whats expected of it who knows.  Did you try it? What were your results?

    With the addition to use an existing WorkSet as a template:

    Got it and that appears to work as expected. It worked very similar to how I figured the variable would work with regards to the dgnws file but doesn't.

    ~HTH

    John.

    yep

  • With the addition to use an existing WorkSet as a template:

    Unfortunately once I step out side of the delivered structure this seems to start to not work.

    Here is the configuration I am trying to use as a seed.

    OUR_PROJECTS     = H:/
    _USTN_WORKSETROOT          = $(OUR_PROJECTS)$(_USTN_WORKSETNAME)/
    _USTN_WORKSETDGNWS         = $(_USTN_WORKSETROOT)$(_USTN_WORKSETNAME).DGNWS
    _USTN_WORKSETSTANDARDS     = $(_USTN_WORKSETROOT)$(_USTN_WORKSETSTANDARDSDIRNAME)/
    _USTN_WORKSETDGNS          = $(_USTN_WORKSETROOT)$(_USTN_WORKSETDGNSDIRNAME)/
    _USTN_OUT                  = $(_USTN_WORKSETROOT)$(_USTN_OUTDIRNAME)/
    MS_DEF                     = $(_USTN_WORKSETDGNS)

    My Project structure is on our H: drive and we desire to have the DGNWS store under the Project (WorkSet name) folder.

    Here is our H: folder structure.

    I don't think we are trying to do anything to far out of the normal.

    Let me know your thoughts.

    ~HTH

    John.

    yep

  • Hi John,

    In my example configuration I am redirecting the configuration to \\Server\CONFIGURATIONS\CE.

    At the Organization level I have:

    #Set projects root location
    MY_PROJECTS = //Server/ProjectData/

    At the WorkSpace level in the WorkSpace.cfg I have included:

    _USTN_WORKSETROOT              =  $(MY_PROJECTS)$(_USTN_WORKSPACENAME)/$(_USTN_WORKSETNAME)/
    _USTN_WORKSETDGNWS         = $(_USTN_WORKSETROOT)Standards/$(_USTN_WORKSETNAME).DGNWS

    to create/use the Standards folder to store the DGNWS.

    _USTN_WORKSETSTANDARDS is set by msconfig.cfg to $(_USTN_WORKSETROOT)Standards\
    ....which is the same as $(_USTN_WORKSETROOT)$(_USTN_WORKSETSTANDARDSDIRNAME)/.

    _USTN_WORKSETSTANDARDSDIRNAME = Standards by default so you'd only need to specify it if using a different name or location for the Standards folder.

    _USTN_WORKSETDGNSDIRNAME is set to 'dgn' in msdirs.cfg

    _USTN_OUT  is set to the 'out' fodler in msconfig.cfg

    MS_DEF = $(_USTN_WORKSETDGNS) is also a default set in msdirs.cfg

    ....then the WorkSet.cfg contains any required WorkSet specific variables.

    [Where project data structures are very consistent, there is a good case for setting the majority of the WorkSet specific variables only once at the WorkSpace or even Organization level, with only variations from the norm being included at the WorkSet level but that is a matter of managerial preference]

    Regards

    Marc

  • At the WorkSpace level in the WorkSpace.cfg I have included:

    _USTN_WORKSETROOT              =  $(MY_PROJECTS)$(_USTN_WORKSPACENAME)/$(_USTN_WORKSETNAME)/
    _USTN_WORKSETDGNWS         = $(_USTN_WORKSETROOT)Standards/$(_USTN_WORKSETNAME).DGNWS

    John said:

    Both of these variables are defined in WorkSetname.cfg by default. Is this not the correct location to define them? If it's correct for them to be in the WorkSpace then why not put them in there by default. I edited where I found them.

    _USTN_WORKSETROOT          = $(_USTN_WORKSETSROOT)$(_USTN_WORKSETNAME)/
    _USTN_WORKSETDGNWS         = $(_USTN_WORKSETSROOT)$(_USTN_WORKSETNAME).DGNWS

    Samir said <in the link above>:

    _USTN_WORKSETDGNWS which defines the location of the DGNWS file of a WorkSet. This configuration variable should be defined in the WorkSet's .cfg file.

    John said:

    The line above is quoted from the link David referenced and was written by Samir. Are you saying that it is incorrect?

    _USTN_WORKSETSTANDARDS is set by msconfig.cfg to $(_USTN_WORKSETROOT)Standards\
    ....which is the same as $(_USTN_WORKSETROOT)$(_USTN_WORKSETSTANDARDSDIRNAME)/.

    _USTN_WORKSETSTANDARDSDIRNAME = Standards by default so you'd only need to specify it if using a different name or location for the Standards folder.

    _USTN_WORKSETDGNSDIRNAME is set to 'dgn' in msdirs.cfg

    _USTN_OUT  is set to the 'out' fodler in msconfig.cfg

    John said:

    These variables all came out of the default WorkSetName.cfg file. Is it incorrect to be in there?  Or do I have some other default .cfg getting used?

    MS_DEF = $(_USTN_WORKSETDGNS) is also a default set in msdirs.cfg

    We define MS_DEF = $(homedir) in our Organization.cfg so that if a user opens a file under No No it defaults them into their user drive. I relize I could place this in the WorkSpace.cfg but I haven't gotten to that yet.

    ???Why don't quotes work???

    ~HTH

    John.

    yep