Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
MicroStation
  • Product Communities
  • More
MicroStation
MicroStation Wiki Where can I find information about Action Strings?
    • Sign in
    • -MicroStation Wiki
      • +Learning Tips
      • -MicroStation
        • +3D Printing - MicroStation
        • +Animation - MicroStation
        • +Archive / Backup - MicroStation
        • +Base Geometry - MicroStation
        • +Batch Processing - MicroStation
        • +CONNECT Advisor - MicroStation
        • CONNECT Integration - MicroStation
        • +CONNECTION Client
        • +Cells - MicroStation
        • +Change Tracking - MicroStation
        • +Configuration - MicroStation
        • +Coordinate Systems - MicroStation
        • +Curves - MicroStation
        • +Custom Linestyles - MicroStation
        • +DGN - MicroStation
        • +DWG - MicroStation
        • +Database - MicroStation
        • +Detailing Symbols - MicroStation
        • +Dimensions - MicroStation
        • +Documentation & Help - MicroStation
        • +Drawing Aids - MicroStation
        • +Exception - MicroStation
        • +FAQ - MicroStation
        • +Feature Based Solids Modeling - MicroStation
        • +File Access - MicroStation
        • -GUI - MicroStation
          • +Backstage - GUI - MicroStation
          • Cleanup - GUI - MicroStation
          • Data model - GUI - MicroStation
          • +Dialogs - GUI - MicroStation
          • +Docking / Resizing - GUI - MicroStation
          • -General - GUI - MicroStation
            • 3D Tools are not available
            • Cannot move dialog box/window (header not visible).
            • Customizing tools and tool boxes in MicroStation V8i
            • Disable menu items in interface
            • Examples missing from Welcome Page
            • How to find Message Center
            • How to move Views to Application Window 3 and 4
            • How to remove items from the main menu bar
            • Icon size in Task dialog to small
            • In the Snap Mode tool box buttons are missing
            • MDL abort in MGDSHOOK
            • Minimum LEARN Content on Welcome Page
            • Missing tool on toolbar
            • More than 10 recently used documents visible on the Open page
            • Move Customised task on the bottom for Microstation Connect Edition
            • Move customised tasks on the bottom
            • New interface dgnlib seed file?
            • Pointer Size
            • Position mapping is not working
            • Pull-down menus are extending past the screen
            • Set Highlight Colors using key-ins
            • Some Tools are not displayed in their toolbars
            • Toolbox showing the active attributes is suddenly missing
            • Turn on or off Tool Tips
            • Unable to find the Pre MicroStation V8 XM Edition Main Menu
            • Where can I find information about Action Strings?
          • Items - GUI - MicroStation
          • +Ribbon - GUI - MicroStation
        • +General - MicroStation
        • +Graphics Display - MicroStation
        • +Groups - MicroStation
        • +Hardware / Input Devices - MicroStation
        • +Import/Export - MicroStation
        • +Installation - MicroStation
        • +Interchange - MicroStation
        • +Interference - MicroStation
        • +Internationalization - MicroStation
        • +Levels - MicroStation
        • +Licensing - MicroStation
        • +Manipulation - MicroStation
        • +Markup / Redline - MicroStation
        • +Measure - MicroStation
        • +Mesh - MicroStation
        • +Models - MicroStation
        • +Multi-Lines - MicroStation
        • +OLE - MicroStation
        • +Other - MicroStation
        • +Parametrics - MicroStation
        • +Patterning - MicroStation
        • +Point Cloud - MicroStation
        • +Printing - MicroStation
        • +Programming - MicroStation
        • +Project Navigation - MicroStation
        • +Properties - MicroStation
        • +RSS Feeds - MicroStation
        • +Reference - MicroStation
        • +Security - MicroStation
        • +Selection - MicroStation
        • +Settings - MicroStation
        • +Sheet Composition - MicroStation
        • +Solids - MicroStation
        • +Standards - MicroStation
        • +Surfaces - MicroStation
        • +Tables - MicroStation
        • +Text - MicroStation
        • +UI Customization - MicroStation
        • +Units - MicroStation
        • +View - MicroStation
        • +Visualization - MicroStation
        • Welcome Page - MicroStation
        • +Accreditation - MicroStation
        • +i.Models - MicroStation
        • +ProjectWise Integration
        • +Raster - MicroStation
    • +Administration Wiki
    • +Annotations Wiki
    • +Bentley View Wiki
    • +MicroStation PowerDraft
    • +Programming Wiki
    • +Visualization Wiki

    You are currently reviewing an older revision of this page.

    • History View current version

    Where can I find information about Action Strings?

      Product: MicroStation
      Version: V8, XM, V8i CONNECT
      Environment: N\A
      Area: GUI
      Subarea: General

    Problem

    Where can I find information about Action Strings?

    Solution

    Search on the term "Action strings" in the Help Documentation.

    The actions that the product performs when you select a tool, select a menu item, or press a function key are defined by the action string associated with that object. At first it is simplest to think of an action string as a key-in or series of key-ins. For example, the action string associated with the Place SmartLine tool is the key-in PLACE
    SMARTLINE. The true effect of selecting the Place SmartLine tool is activation of the PLACE SMARTLINE key-in.

    Action Types

    Several types of actions can be specified in action strings and associated with tools, view controls, menu items, and function keys.

    Action typeSyntaxDescription
    Command Entry Key-in E,<key-in> Simulates a key-in. The key-in specified by a command entry key-in is always activated, regardless of state of the active key-in. For example, suppose that PLACE CIRCLE RADIUS is the active key-in and is prompting for the radius. If you press a function key defined in the function key menu to have action type E that activates the PLACE LINE CONSTRAINED key-in, then PLACE LINE CONSTRAINED becomes the active key-in.
    Terminated Key-in T,<key-in> Simulates a key-in. A terminated key-in is normally used to get data requested by prompts, such as the radius of a circle, text, or an answer to a yes-or-no question.
    Unterminated Key-in K,<key-in> Keys in an unterminated string of characters and waits for you to finish the string.
    Print Message M,<message> Prints a message in one of the status bar fields.

    Action Type Options

    These options can be used immediately following the E, T, or K action types or anywhere in a multiple action string following a semicolon.

    /<character> If there is a slash (/) in an action string, the product pauses for user input. If the slash is followed by d, k, or no character, the product does the following:
    • /d — waits for a data point.
    • /k — waits for a key-in.
    • No character — proceeds after any input.
    %<character> A percent (%) character in an action string is identical to the slash, except that the product does not display any of its normal prompts. This is useful to display custom prompts from a menu. The actions %d and %k work analogously to /d and /k.

    Entering Multiple Action Strings

    Each action string can contain several actions (separated by semicolons).

    For example, this action string places a blue two-inch circle at a user-specified point: co=blue;E,PLACE CIRCLE RADIUS;T,2;M,cfPlace 2 Inch Circle;%d;null

    The actions are as follows:

    ActionDescription
    co=blue A command entry key-in (since no type is specified) that sets the Active Color to blue. The product activates the ACTIVE COLOR key-in even if it currently expects a data key-in.
    E,PLACE CIRCLE RADIUS The key-in PLACE CIRCLE RADIUS.
    T,2 A terminated key-in that enters a radius of 2.
    M,cfPlace 2 Inch Circle Displays the message "Place 2 Inch Circle" in the status bar.
    %d Waits for a data point without displaying the normal prompts (preserving the prompt displayed by the previous action).
    null After the circle is placed, executes the NULL key-in so that no tool or view control is selected.

    See Also

    Other language sources

      Original Author: Robert DiMauro, Bentley Technical Support Group
    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