Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
MicroStation
  • Product Communities
MicroStation
[Archived] AskInga Wiki Capturing messages from the dialog debugger
    • 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
      • +Internet - E-Links - Links
      • -Keyins
        • Access the BASIC editor
        • An alternate keyin for DL=0,0,0
        • Capturing messages from the dialog debugger
        • Changes to the DI keyin
        • Combine your keyins
        • Dealing with quotation marks in named settings such as saved views, text styles, dimension styles and more
        • Dealing with spaces in names when using keyins
        • Determining keyins associated with tool settings
        • How to expand keyins that contain configuration variables
        • How to extract keyins for the tool settings in MicroStation V8i
        • How to string keyins together or create keyin scripts
        • Increment or decrement keyins
        • Keyin for the save as dialog
        • Keyins to reload active file
        • MicroStation's accelerator keys AKA keyboard shortcuts
        • MicroStation's calculator preprocessor
        • Multiply or divide keyins
        • Paste into the keyin window
        • Print messages in your scripts
        • Something neat to add to the end of script files
        • The keyboard shortcuts
        • The power of keyins
        • The V7 Keyin list
        • The V8 Keyin list
        • To open the previous file
        • Understanding the Key-in Browser
        • Use the pipe key for repetitive keyins
        • Using the Expand Keyin
        • What command was that?
      • +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. 

    Capturing messages from the dialog debugger

    AskInga logo

    Original Article Date: January 2003

    Updated:  August 2010

    Capturing messages from the dialog debugger

    Ever wondered how to save those MicroStation Messages when the Dialog Debugger is enabled? Take a peek at this article to learn the keyins needed. With thanks to Bentley's Chris Marks for sharing this information!

    Many times when you're trying to diagnose a problem, or simply just attempting to output a dialog's resource ID number, you'll use the keyin dmsg dialogdebug on to display any messages that may be generated.

     

    With the help of the following keyins you can output the messages from the message box shown above to a text file.


    DMSG OPENMSGFILE drive:\path\output.txt
    Creates an empty text file that will be used to receive the messages. The successful creation of this file is reported on the right side of the status bar.

    DMSG APPENDMSGFILE drive:\path\output.txt
    Specifies the point at which to start recording to the output file.

    DMSG CLOSEMSGFILE
    Stops recording and closes the output file.

    Note, the above keyins also support a forward slash (/)in the file path.

    The end result is a text file that contains the messages as recorded by the DialogDebugger. Note that there are no "carriage returns"....all the data is captured as one huge text string.

     

    To remedy this, simply open the text file in Excel and all will be well.

     

    For further information on using this keyin to get dialog box resource numbers, please refer to:
    Using keyins to toggle dialogs and toolboxes! .

    AskInga Article #133

    • Keyins
    • Askinga
    • Article
    • Share
    • History
    • More
    • Cancel
    • CTennyson Created by Bentley Colleague CTennyson
    • When: Thu, May 29 2008 11:50 AM
    • Inga Morozoff Last revision by Bentley Colleague Inga Morozoff
    • When: Tue, Aug 17 2010 2:29 PM
    • Revisions: 7
    • 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

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