Role Specific DGNLIB with Item Types and Report Definition

Hi Everyone, 

I am trying recently to learn a little bit more about MicroStation workspace, workset and role configuration files. I am currently using MicroStation Connect Edition Update 16 (Version 10.16.01.56).

My goal is to create a role specific (for Electrical, Civils, Telecomms disciplines) libraries for the following: 

- Item Types 

- Report Definition

I was able to load role specific Item Types library and Lookup table by adding the following lines into my role configuration file:

MS_DGNLIBLIST_ITEMTYPES 		> $(_USTN_WORKSPACEROOT)Roles/Electrical/Dgnlib/*.dgnlib

ITEMTYPE_LOOKUP 			    > $(_USTN_WORKSPACEROOT)Roles/Electrical/Itemlib/KAW_CarbonAssessmentLookup.xlsx

The MS_DNGLIBLIST_ITEMTYPES is only loading Item Types and does not load Report Definition which was saved in the same DGNLIB as Item Types. Is it possible to load report definition from the role level, so that only role specific reports will be loaded? 

Please note that I am still learning, and I am not sure whether I loaded role specific Item Types and Lookup Tables in the right way. So, I appreciate your support. 

Parents Reply Children
  • Did you use MS_DGNLIBLIST with an = after it?

    When you do that it tells MicroStation "Throw out all my other MS_DGNLIBLIST files and just use this one"

    Instead you want to use a > or < instead

    > will append your setting to the current list of dgnlibs, and

    < will prepend your setting to the current list of dgnlibs

    doesn't really matter which you use here.

    more details here:

    Assignment Statements (bentley.com)

     

  • I actually tried "=", ">" and "<" with MS_DNGLIBLIST but it does not work from my role configuration file. I guess I did something wrong, but I do not know where. 

    It is interesting that MS_DGNLIBLIST_ITEMTYPES from role level works, but it throws out other MS_DNGLIBLIST (specified on organisation level), no matter whether it is appended or prepend. So, it attaches only DGNLIB from my role level. 

    Here is my Role.cfg how MS_DGNLIBLIST and MS_DGNLIBLIST_ITEMTYPES were assigned. 

    #----------------------------------------------------------------------
    #  Role.Template - Template for new Role
    #----------------------------------------------------------------------
    
    AC_ROLE_PROFILE = Electrical
    
    #MS_DGNLIBLIST				> $(_USTN_WORKSPACEROOT)Roles/Electrical/Dgnlib/*.dgnlib
    MS_DGNLIBLIST_ITEMTYPES 		< $(_USTN_WORKSPACEROOT)Roles/Electrical/Dgnlib/*.dgnlib
    
    
    #ITEMTYPE_LOOKUP 			> $(_USTN_WORKSPACEROOT)Roles/Electrical/Itemlib/KAW_CarbonAssessmentLookup.xlsx

    Please note that in the code above there is "#" symbol before MS_DGNLIBLIST, but it was removed when I was testing the configuration. 

  • There is a known issue with the Role configurations.

    If you want to switch roles, you have to open a dgn file using the new role, close MicroStation and restart.

    Just switching Roles, and opening a dgn file leaves you in the previous Role.

    Rod Wing
    Senior Systems Analyst

  • Hi Rod, 

    Thanks for your comment. I have tried to switch roles and you are right, it does not work properly. I noticed that when I changed the role the DGNLIB from previous role were loaded as well. So, the list of DGNLIB was growing everytime I switched to new role. Once I close MicroStation and switch to specific role again, I could see the DNGLIB from that specific role only. 

    However, it still does not load the organisation DGNLIB when the following line to Role.cfg is added. 

    MS_DGNLIBLIST_ITEMTYPES < $(_USTN_WORKSPACEROOT)Roles/Electrical/Dgnlib/*.dgnlib

    Also, if any following line is added to Role.cfg file, MicroStation does not load any role specific DGNLIB. 

    MS_DGNLIBLIST > $(_USTN_WORKSPACEROOT)Roles/Electrical/Dgnlib/*.dgnlib

    or 

    MS_DGNLIBLIST < $(_USTN_WORKSPACEROOT)Roles/Electrical/Dgnlib/*.dgnlib

    or

    MS_DGNLIBLIST = $(_USTN_WORKSPACEROOT)Roles/Electrical/Dgnlib/*.dgnlib