Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
MicroStation
  • Product Communities
  • More
MicroStation
[Archived] AskInga Wiki Importing customization from M01 and STG files
    • Sign in

    • -AskInga
      • +3D MicroStation
      • +AccuDraw Secrets
      • +Animation - Rendering
      • +Behind The Scenes
      • +Cells
      • +Colours
      • +Conversion - Translation
      • +Coordinate Input
      • +Design Settings
      • +Dimensions
      • +DWG
      • +EDG
      • +Element Manipulation
      • +Element Properties
      • +Element Selection
      • +Freeware - Shareware
      • -Interface Look And Feel
        • Add a line separator in a barmenu
        • Add custom file types to list files of type
        • Add your favorite web-site to the menu bar
        • Adding icons to your tools
        • Adjust the response time for pop-up dialogs to close
        • Adjust width of message center
        • All about function keys and function key menus
        • An introduction to templates, tasks and tools
        • Auto-hide the tools settings when cursor gets too close
        • Auto-restore status bar
        • Barmenu wars - comments from CCM
        • Change how levels are displayed in the attributes dialog
        • Change screens
        • Change system colour for disabled menu item with this macro
        • Change the weight of your V7 element handles
        • Change your task bar icon
        • Create clickable screen menus
        • Create custom icons with ease
        • Customize the width of the level picker
        • Customize where to use position mapping
        • Customizing your mouse buttons
        • Default button and function keys
        • Dialog box IDs
        • Dialog column display
        • Disable auto-highlighting when passing cursor over elements
        • Dock stuff to the left of file in the menu bar
        • Don't show tools you seldom use
        • Easier access to level locks and other stuff
        • ESC to go home
        • Exceed function key character limit
        • Export MicroStations icons from the open DGN library
        • Extract information from dialogs
        • Faster switching between folders
        • File icons in the MicroStation manager
        • Fly with Barmenus - Part 1
        • Fly with Barmenus - Part 2
        • Fly with Barmenus - Part 3
        • Get dialog IDs from an external file
        • Get rid of tool boxes
        • Get to the keyin window faster
        • Give MicroStation an antiqued look
        • How to customize displayed columns in MicroStation manager
        • Importing customization from M01 and STG files
        • Improve on the Dmsg sinkall toggle command
        • Improved dynamics in MicroStation V8.5 will rock you
        • Keyin for the menu bar
        • Keyin for toggling the message center
        • Keyin to toggle dialogs on and off
        • Keyin toggle for the status bar
        • Keyins for the WinOpen Windows file open dialogs
        • Keyins or data point tentative point and reset
        • Keyins to toggle dialogs and toolboxes (pre-V8)
        • Keyins to toggle toolboxes (V8)
        • Left-handers unite change position mapping to your side
        • Load different function key menus
        • Make your toolbox pop up and down
        • Maximize real estate when drawing with ByLevel definitions
        • Maximum number of open GUI items
        • Miss the old main tool frame in MicroStation V8 XM Edition
        • Missing snaps
        • Move the menu bar
        • Navigate through task list quicker
        • Open current task as pop-up under your cursor
        • Open dialogs from primary tools under your cursor
        • Open the main task or toolbox near your cursor
        • Pop-up menu in the models dialog
        • Position mapping continues to work if toolbox is closed
        • Press and hold the reset for pop-up menu
        • Prevent tool boxes from changing orientation when moving
        • Prompts too long
        • Put the focus in the tool settings dialog
        • Put the focus into the tool settings window when a tool is selected
        • Quick select with position mapping
        • Quickly change screens on dialogs
        • Remove open URL from file menu
        • Remove send from the file menu
        • Remove send viecon plot from the file menu
        • Reorder the task list
        • Restore deleted menu items in MicroStation V8 XM Edition
        • Restore menu bar customizations
        • Right click menu in the tool settings box
        • Save your messages
        • Set the pointer circle to a different colour
        • Sidebar Menus
        • Small triangles mysteriously showing up in your views
        • Stuck dialogs
        • Swap user interfaces on the fly
        • Tips for Barmenus
        • Toggle the display of the ACS triad
        • Transparent dialogs
        • Turn on-off positional mapping aids
        • Unwanted datapoints
        • Use shift to activate representative or previous tool
        • Useful DMSG keyins
        • Using a tablet take a peek at the new V8.5 menu
        • Using Named Expressions to drive interface items – A sample
        • Using WinOpen to change MicroStation's dialogs
        • Utilize the space beside the menu bar to dock tool boxes
      • +Internet - E-Links - Links
      • +Keyins
      • +Levels
      • +Line Styles
      • +Models
      • +MSM Archive
      • +Other
      • +Presentations
      • +Printing - Plotting
      • +Programming - Automation
      • +Rasters - Images
      • +References
      • +Tags - Data Fields - Fields
      • +Text - Fonts - Annotation
      • +Views
      • +Windows - Interacting With
      • +Workspaces - Configuration
    • graffiti

     
     Questions about this article, topic, or product? Click here. 

    Importing customization from M01 and STG files

    AskInga logo

    Original Article Date:March 2006 

    For those of you experimenting with MicroStation V8 XM Edition, you might find this article/tutorial of interest. Authored by Bentley’s Tim Hickman it’ll get you started on importing the content from your old ustn.m01 files into MicroStation V8 XM Edition. Tim also touches on migrating data from any stg files you may have. Note that this article is based on the version 08.09.02.12.

    Preparation:
    Let’s get started! Create an interface folder and place a copy of your V8 ustn.m01 into it.
    Create a new file in your dgnlib folder that will be used to house the imported interface components. For example: MyUserInterface.dgnlib.
    Ensure that MS_DGNLIBLIST is pointing to this file dgnlib file.
    Open this new file and go to Workspace > Customize.
    Navigate to the Tools tab and you should notice the MicroStation is indeed reading the tools and tool boxes from the old M01 file.

    Tool Boxes:
    For purposes of this article, my M01 contains this little tool box:

    Navigate to Application Tools > MicroStation as shown below and notice that the tool boxes have been added from the M01 to MicroStation.

    Click here to play this video

    You now need to copy them from Application Tools > MicroStation to User Tasks.
    On the left side, ensure that you’ve selected the tool box you want to migrate. Do a right click and select Copy. On the right side, expand User Tasks, highlight your dgnlib file, do a right click and select Paste. It can’t get any easier than that!

    Click here to play this video

    Since tool boxes now become tasks, you can verify that it’s been added correctly by noting the changes to the Task Navigation tool bar.

    Click here to play this video

    Menu Items:
    Customized menu items from your M01 file are handled a little differently. In this article, we’ll look at importing this little menu bar from the M01 file to the dgnlib.

    Click here to play this video

    Navigate to Workspace > Customize and go to the Tools tab. From there ensure that you’ve selected Menu from the picklist on the right side and expand Main Menu.
    In doing so, notice the the custom menu items from the M01 are automatically being read and loaded into the Main Menu. MicroStation also displays M01 menu items with an italic font.

    Click here to play this video

    At this time you copy the menu item(s) by simply doing a right click and selecting Copy. Of course, you’ll then want to highlight the Main Menu and issue a paste.

    Click here to play this video

    Once your tool boxes and menu items have been copied (imported) into your dgnlib, you can delete the M01 file and tweak menu items as needed. Although this workflow may seem a bit redundant, it’s important to recognize that the menu items (and tool boxes) will not be available once the M01file is removed from the interface folder. Copying/importing these items into the dgnlib will make them available to your users via MS_DGNLIBLIST.

    NOTE: The following is snipped from Help:

    There are several capabilities available, should you need to change the default display of menus. To change the default settings, add any of the following capabilities to either your user configuration file (UCF) or your project configuration file (PCF):

    _USTN_CAPABILITY < +CAPABILITY_UI_LOADFROMACTIVEFILE Used if you want to have access to the features on the Tools tab while working in a DGN file that is not specified by the configuration variables listed above. If this capability is set, you will see the custom tools, tasks, and menus from the open DGN file in addition to those in the specified DGN libraries.

    _USTN_CAPABILITY < +CAPABILITY_UI_IGNOREMENUSFROMDGNLIBS Used if you want to hide all menu customizations in the DGN libraries specified by the configuration variables listed above.

    USTN_CAPABILITY <+CAPABILITY_UI_IGNOREMENUSFROMRSCMODFILE Used if you want to hide all menu customizations that were loaded from a user interface modification file. This capability takes effect only if the CAPABILITY_UI_IGNOREMENUSFROMDGNLIBS function is NOT set.

    Settings Manager:
    If you were using the Settings Manager in V8 or MS/J and wish to incorporate this into the tools, templates and tasks then you will need to do the following:

    Click on the Templates tab, go to File > Import > From Settings Manager, browse to your stg file and select it.

    MicroStation will import the items and you’ll see them displayed as a list of templates as well as a list of User Tools.

    Click here to play this video

    A reminder at this point is that anything we are currently doing is being placed in the active file – so these templates, tools, and tasks that came from the STG file are in the active file and not in any kind of resource file be it M01 or STG.

    To recap, you should now have the contents of the old M01 and the STG files in the open dgnlib file. If you have defined MS_DGNLIBLIST to include this design file and if the workspace is shared among your users, they will be able to use the imported tools, tasks and templates.

    AskInga Article #289

    • Askinga
    • Interface Look and Feel
    • Share
    • History
    • More
    • Cancel
    • Anonymous Created by Anonymous
    • When: Fri, May 30 2008 10:35 AM
    • Inga Morozoff Last revision by Bentley Colleague Inga Morozoff
    • When: Wed, Nov 2 2011 5:00 PM
    • Revisions: 6
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2022 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies