Stop Autoload of Linestyles

Does anyone know how to keep linestyles from automatically being loaded into dgnlib's
and dgn files? I have been trying to limit the number of linestyles available to our users
but this autocreation of linestyles in files is making it almost impossible to purge them.

Any help would be appreciated.

Tom

 

Parents
  • Just by coincidence, we have a ticket in support for that very subject right now...   Line styles aren't something that we work with very much in the building team so we've enlisted some internal help.    

    But if anyone reading this happens to know, we're all ears!   :)



  • If you are meaning custom Linestyles, then these are loaded by default from your workspace system\symb\ directory and your standards\symb\ directory. The definition of these directories is controlled by the MS_SYMBRSRC config variable.

    They are resource files with  *.rsc  extension, though some of those will be font files. The line style ones will hopefully have used *lstyle* in the name and *font* for the font files.

    People tend to change jobs and take their *.rsc files with them and if not controlled over time it can end up becoming a mess with duplicate names in multiple files. You can try and figure out what is what in the custom line style editor or you can move all the files out and put them back one at a time to see what you get. But it will be a pain to straighten out if you want to keep some from one file and some from others. HTH

  • Yes. When it was just resource files, managing them was easier.

    With the current behavior, the most problematic part is the linestyles

    are copied into every file upon opening it.

    So eventhough, I cleaned up the linestyles in dgnlib's to a point.

    Every file that was previously opened still has all the linestyles in them.

    This reminds me, I need to go check my seed files.

    Hopefully a better way of managing them will be forth coming in a future release.

    Tom

  • Yes...  Any DGN files opened previously while the line styles existed somewhere will have them written locally, so will have to be compressed to remove them.  This could probably be done as a batch process.



  • Hi Tom,

    The issue here is the familiar one of library contents being copied into the active file to support DV creation. As well as levels, line styles and pattern cells in the active dataset that might be used by DV during the display of nonpersistent graphics are also copied into the active file.

    Compress will remove unused content from dgn files but not from dgnlibs which is causing the duplication in your library dgnlibs.

    Obviously DV creation is not a concern when managing dgnlibs so I suggest that anyone managing dgnlibs uses a specific UCF or PCF combination that contains the variable BB_DVDATASETELEMENTS=0 that will disable the copying of library content.

    Marc

  • Marc,

    Yes, I can see the need for content to be copied to files for DV creation.

    However, unlike levels and pattern cells, "All" line styles are copied to active file.

    Not just line styles needed for DV creation.

    Thanks,

    Tom

  • Just revisiting this question and the behaviour I'm seeing in SS4 and above is that line styles in .rsc files are not copied into active DGN, only those in dgnlibs.

    Marc

Reply Children
  • I believe that is correct.
    Is this going to corrected for .dgnlib's in next release?
  • What I am finding is that Aecosim likes to copy in all available linestyles into files when opened, including those from mechanical/structural and electrical, when these disciplines are not even loaded.
  • Tom,
    I know in a newer version (SS4 or 5, I can't remember which) the guilty DGNLIB with the line styles that you mentioned resided on each user's machine was cleaned up. Additionally, when you were doing the clean up of line styles you could have used the keyin: DELETE UNUSED LINESTYLES on the DGNLIB file to avoid changing the extension to DGN to compress and then reverting back to DGNLIB. This also allows you to batch process files. Note that I usually run this keyin twice. The first time it will get rid of 292 linestyles and the second it will clear one more. Also, I tend to use base MicroStation when doing any edits to DGNLIB's to avoid any potential content contamination that may be caused by the behavior that BB_DVDATASETELEMENTS = 1 forces.
    -Travis