Is there any tool or key-in to Reload Libraries?

MicroStation CE 14

Hi.

When I open MicroStation, appears a windows loading libraries before opening a drawing completely.

Due to we can add/remove DGNLIB files (or paths in the MS_DGNLIBLIST variable), do we have to close and open MS again? or we can Reload Libraries from the same session?

Also, When I open a file (ReadOnly mode) I don´t know why MS has to load libraries if the user can do nothing...  It does not make more sense not loading libraries when a readOnly file is open?

  • Hi Joan,

    in addition to detail answer from a few more comments:

    When I open MicroStation, appears a windows loading libraries before opening a drawing completely.

    I am curious how large your DGNLIBs are, because MicroStation typically does not show this info. On the other hand, OpenRoads Designer, because of complex big DGNLIBs, shows it always ;-)

    do we have to close and open MS again? or we can Reload Libraries from the same session?

    It depends type of modification you did:

    • When a number of DGNLIB files has changed, e.g. because new file is added, or the variable is changed to use different filtering or to point to another folder, to reload workspace is required. The simplest is to restart MicroStation, but my experience is that to close DGN file (backstage > close) and to reopen is usually enough.
    • When a new "object" is added to existing DGNLIB (e.g. new level is created), to reopen DGN file (without closing it upfront) is enough. Simple key-in "newfile" without parameters does the same.
    • When a setting / configuration of existing object is changed (e.g. level color), again, the file has to be reopened (or "newfile" key-in used).

    To modify DGNLIB is admin task, done at the beginning of the project typically, so to restart is rarely necessary.

    BTW "dgnlib update" key-in was mentioned. Based on my testing it does not update changes from DGNLIB files, but it returns back changes, done in DGNLIB settings in the current file, like when you change level color to be blue, "dgnlib update levels" will change the color to red, because it's defined in DGNLIB.

    Also, When I open a file (ReadOnly mode) I don´t know why MS has to load libraries if the user can do nothing...  It does not make more sense not loading libraries when a readOnly file is open?

    Please, respect the best practices and never ask more different questions in one post!

    And, of course, it makes perfect sense, because DGNLIB can contain plenty of settings, not directly related to file modification, like display styles and display rules or print styles.

    With regards,

      Jan

  • I have done the following steps:

    1- in the "edit configuration variable" window for MS_DGNLIBLIST variable,  i have removed all in "new value:" llistbox.

    2-I reopen the same drawing from recent files.

    3- I open templates dialog and does not appear dgnlib files..

    So it works in MS CE 14.

  • As long as your dgnlib files are defined by MS_DGNLIBLIST, you can simply do File > Open > your active file or Key-in: newfile your active file.

    Eh? Not sure I agree with that at all.

    If I'm understanding the original post correctly:

    Due to we can add/remove DGNLIB files (or paths in the MS_DGNLIBLIST variable), do we have to close and open MS again? or we can Reload Libraries from the same session?

    That is to say that, "If the configuration variable MS_DGNLIBLIST is modified during a current MicroStation session whereby file path(s) are added or removed alongwith the necessary operator, is it possible for a user to have MicroStation essentially reprocess all .dgnlib files found via the current values set in MS_DGNLIBLIST (in the same manner as they are processed during startup) so that all the  content within each .dgnlib file becomes available for use within the same session?" 

    Unless .dgnlib loading functionality is different in CONNECT to V8i, then the answer is NO, you cannot do that without closing and restarting CONNECT. Yes, its possible in V8i but IF (and only IF) you use PCF files (which iirc are not present in CONNECT) because changing Projects causes all configuration variables within the PCF to be read and their values assigned and that can include DGNLIB's if MS_DGNLIBLIST and/or MS_GUIDGNLIBLIST have entries in the the newly chosen PCF. I've just tested it with 2 test PCF files, created 2 dummy dgnlib files where each contains only a single dimension style and within each PCF file, I purposely override the initial definition of MS_DGNLIBLIST using the "=" operator.

    • When I open a DGN file with a normal work project active, my standard dimension styles are available
    • When I go back to the MicroStation Manager and change the project to Test Project A, all my previous Dim styles are gone and only the Test Project A dimension style is available.
    • When I go back to the MicroStation Manager and change the project to Test Project B, the Test Project A Dim style is gone and only the Test Project B dimension style is available

    Same goes for text styles, detailing symbols etc...

    Regarding your second question, you have to delete MS_DGNLIBLIST if you do not want to see the dgnlib files.

    This answer is unclear as you are not informing the OP where to delete MS_DGNLIBLIST i.e. via Configuration Dialog, CFG file, UCF file. It matters as where its done has considerable differences.

    If I open up a normal work file (where all my normal dimension styles are available) and use the keyin:

    expand set MS_DGNLIBLIST = 

    I can review that MS_DGNLIBLIST is thereafter empty however all of my dimension styles remain loaded and available to select.
    If I delete the entry for MS_DGNLIBLIST via the configuration Dialog, all of my dimension styles still remain.
    Therefore if you want to open MicroStation without any DGN Libraries loading, I would recommend that you:

    • Create a custom .cfg file and set the value of MS_DGNLIBLIST to nothing i.e. "MS_DGNLIBLIST = " (without the speechmarks!)
    • Create a custom shortcut and assign a -WC switch which will eventually process this CFG file (it may take more CFG files if you want aspects of your existing configuration to load and depending on how your workspace is set up)

     I can't quite recall how CONNECT differs from an adminstration perspective but I trust you get the idea.

  • keyin: DGNLIB UPDATE ALL

    this may get you what you are looking for...

    instead of "all" you can specify text styles, levels, templates, etc...

    DGNLIB UPDATE TEMPLATES

    Timothy Hickman

    CADD Manager | CADD Department

    timothy.hickman@colliersengineering.com

    Main: 877 627 3772| 

    1000 Waterview Drive Suite 201 | Hamilton, New Jersey 08691