Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
MicroStation
  • Product Communities
MicroStation
[Archived] AskInga Wiki Run commands when starting MicroStation
    • 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
      • +Levels
      • +Line Styles
      • +Models
      • +MSM Archive
      • +Other
      • +Presentations
      • +Printing - Plotting
      • -Programming - Automation
        • Run a VBA macro when opening or closing design files
        • Run commands or BASIC macro when opening files
        • Run commands when starting MicroStation
        • The Settings Manager - Part 1
        • The Settings Manager - Part 2
      • +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. 

    Run commands when starting MicroStation

    AskInga logo

    Original Article Date: July 19, 2002

    Learn how to run set of commands when you fire up MicroStation.

    To run a macro or set of keyins when starting MicroStation, you can use the -s command line switch which dumps the contents of a "startup file" into the MicroStation key-in window for immediate execution.

    For this to work, you'll need to append the MicroStation icon command line to read:
    ustation.exe -sdrive\folder\file.txt For example: -sd:\temp\RunNow.txt

    "d:\temp\RunNow.txt" would then contain any set of key-ins to be run immediatly when MicroStation is started:
    lv=1;co=0;wt=0;lc=0;on-1-63;selv 1;fit;selv 1;macro scaletext

    If you want to run the contents of the startup file during the design session, just keyin a @ followed by the name of your startup file. ie: @d:\temp\RunNow.txt. (By the way, a startup file is more commonly referred to as a script file.)


    For more information about script and startup files, please refer to:
    How to string keyins together or create keyin scripts


    More information about command line switches can be found in:
    MicroStation Command Line Options And Switches 

    AskInga Article #115

    • Askinga
    • Automation
    • Programming
    • Article
    • Share
    • History
    • More
    • Cancel
    • Anonymous Created by Anonymous
    • When: Thu, May 29 2008 10:15 AM
    • Inga Morozoff Last revision by Bentley Colleague Inga Morozoff
    • When: Mon, Jun 14 2010 10:57 AM
    • Revisions: 4
    • 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