Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
MicroStation
  • Product Communities
  • More
MicroStation
[Archived] AskInga Wiki Keyins to toggle dialogs and toolboxes (pre-V8)
    • 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. 

    Keyins to toggle dialogs and toolboxes (pre-V8)

    AskInga logo

     

    Original Article Date: March 2003
    Updated:  February 2010

    Note:  The content in this article is for pre-V8 versions of MicroStation only.

    Did you know that you can activate dialogs, tool boxes and tool frames just by using a keyin? Do you know how to get the resource ID number for a tool box? Need to close a dialog with a keyin? Or open a dialog with a keyin? If so, then read this contribution by Larry Whitt.

    With thanks to Larry Whitt for the content of this article. Larry is a popular and valued member of the MicroStation community and you can always be sure to find his contributions on Bentley's newsgroups and CCM.

    With thanks to Bentley's Rudi Wells for spotting an error and setting us straight!


    You can toggle the display of any MicroStation dialog, toolbox, or tool frame with a keyin if you know its name and resource ID number. There are a couple of different ways to determine an items resource ID number. One method is to use the keyin dialogdebug as follows:

    • To activate it: dmsg dialogdebug toggle OR dmsg dialogdebug on
    • To turn it off: dmsg dialogdebug toggle OR dmsg dialogdebug off

      The image below shows the resulting messages when dialogdebug is ON and the Polygon tool box is torn away from the Main tool fram. Note the ID number of the tool box.

      Another method of extracting the ID number of a tool box is to utilize the Attach Tool Box button when customizing a menu bar item. This time MicroStation will extract the ID number and build the keyin to toggle the display of the selected tool box. Again, note the value of the ID number as shown below.

      And finally, there's ...\Program\MicroStation\mdl\include\dlogids.h that lists MicroStation's item ID numbers. Look for "TOOLBOXID_tool box name" and just to the right of it will be the ID number. Keep in mind though that many of these will not work as keyins since they require internal setup by MicroStation. (Thanks to Barry Bentley for this tip!)

      Something of interest - The ID numbers for MicroStation dialog boxes, tool boxes, and tool palettes are for the most part negative. An exception to this is the AccuDraw DataPoint Keyin Window and the Plot Preview window which both have positive ID numbers. Also, custom tool box ID numbers are nearly always positive.

      So, here comes the good stuff! The table below shows the keyins to open all those dialogs, tool boxes and tool palettes.

      To close dialogs, you're going to use one of the following keyins depending upon the ID number of the dialog.

      If the ID is negative: dmsg closedialog ID where ID is the number of the dialog.
      If the ID is positive: dmsg closedialog ID DialogName

      For example, to close the Plot Preview window, you would use: DMSG CLOSEDIALOG 1400 plotdlg. And for closing AccuDraw's datapoint keyin window, the command is: DMSG CLOSEDIALOG 2 accudraw



      To wrap this up, care must be taken if you are tempted to experiment by opening dialogs by keying in random resource ID numbers...just to see if something will happen. Once displayed, some dialogs may not permit you to exit or close the dialog and may even lock up MicroStation. Others may cause MicroStation to exit and in rare cases, the UPF or the design file might become corrupted! This can happen if the dialog is meant to display an alert, a warning or something along that line. There are also some dialogs that are similar in appearance to an OPEN dialog, but when accessed via the key-in they may be non-functional. These could be templates that require an associated application to "populate" the dialog, or are "left-overs" from development - whatever. In any event, there can be unexpected results when randomly trying out resource ID numbers...so exercise caution.

      AskInga Article #100
    • Keyins
    • Askinga
    • Article
    • Share
    • History
    • More
    • Cancel
    • CTennyson Created by Bentley Colleague CTennyson
    • When: Thu, May 29 2008 11:46 AM
    • Inga Morozoff Last revision by Bentley Colleague Inga Morozoff
    • When: Thu, Feb 10 2011 9:03 AM
    • Revisions: 9
    • 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

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