Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
MicroStation
  • Product Communities
  • More
MicroStation
[Archived] AskInga Wiki Viewing and determining the configuration variables
    • 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
      • +Rasters - Images
      • +References
      • +Tags - Data Fields - Fields
      • +Text - Fonts - Annotation
      • +Views
      • +Windows - Interacting With
      • -Workspaces - Configuration
        • All about saving DWG files
        • Auto-open a file to a specific model
        • Change the MicroStation Manager workspace options
        • Complete list of MicroStation V8's configuration variables
        • Compress your UPF file
        • Configuration variable operators
        • Configuration variable processing
        • Configure your compress options
        • Control the output location of MicroStation Packages
        • Convert MDF files to DGNLIB
        • Create new UPF every time you start MicroStation
        • Creating a configuration file
        • Current working directory
        • Customized Standards Checker Reports
        • Degeek MS DESIGN HISTORY REVISION NUMBER FORMAT
        • Deleting your UPF while retaining most settings
        • Digging into your workspace
        • Disable stuff MicroStation can or can't do
        • Do you really need to restart MicroStation when editing variables?
        • Edit Project variables via workspace configuration
        • Get rid of MicroStation Text Window
        • Have only one UPF regardless of the workspace you are using
        • How to figure out what the command line switches are
        • How to set WORKDIR DGNDIR after starting MicroStation
        • Learning about workspaces
        • List the configuration variables
        • Lock down your variables
        • Managing MicroStation backup directories
        • MicroStation J and V8 workspaces on the same computer
        • MicroStation J enhanced workspace functionality
        • MicroStation J Workspaces
        • Monitor your UPF file
        • Move your custom interface from one machine to another
        • MS_RFDIR limitations
        • Open V7 files without reconfiguring V8
        • Open Windows Explorer to location of workspace files
        • Preprocessor directives for processing configuration files
        • Quickly restore the defaults with a command line switch
        • Referencing other configuration variables
        • Regarding the last line in a configuration file
        • Report your variables with Expand Echo keyin
        • Return to the MicroStation Manager
        • Run Debug from a modified icon
        • Run debug from the command prompt DOS window
        • Set temporary variables with the Expand Set keyin
        • Set up a seed file for your UPF file
        • Setting the MS_OPENV7 variable
        • Sharing your workspace
        • Shawn Foster's BE 2005 presentations
        • Show all configuration variables not just some
        • Show full path of active file in title bar
        • Specify sub-folders when making a new project
        • Specify the folder for msdebug.txt
        • Temporary files
        • The types of configuration variables
        • The User Preference File [UPF]
        • Total length of file paths
        • Transcending the workspace and time continuum
        • Understanding configuration variables
        • Understanding MicroStation BASIC configuration variables
        • Use a library legend to help manage your library definitions
        • User interface hierarchy
        • Viewing and determining the configuration variables
        • What happens when you launch MicroStation?
        • What is a workspace?
        • Working with V7 files in V8
        • Workspace root
        • You're the CAD Manager, now what?
    • graffiti

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

    Viewing and determining the configuration variables

    AskInga logo

    Original Article Date: March  2004

    Updated:  March 2012

    For the new CAD Administrator, this article will help you locate and view the configuration variables available in MicroStation....after that, you'll learn how to determine what your variables are.

    The MicroStation environment is defined by things called configuration variables which is an item seen by MicroStation as a unique name that provides definition of where things are found, stored, and named.

    Viewing variables:
    There are several on-line resources to see what variables are available to MicroStation. Among them are the following:

    Complete List of MicroStation V8's Configuration Variables

    Configuration Variables in MicroStation V8 (2004 Edition, V8.0 and V8.1)

    MicroStation v8i Variables [TN]



    Another cool way of determining what variables are available to MicroStation is to keyin the following while in a design file: Mdl load cfgvars printCfgVarResource

    Note that this keyin is case sensitive and must be keyed in exactly as shown above. In doing so MicroStation will create two filescalled cfgvars.txt and cfglong.txt.  In earlier versions of MicroStation, these files will be created in MicroStation' s root folder.  In MicroStation v8i, the files can be found in the same folder as the open design file.

    cfgvars.txt conains a lengthy list of data showing various bits of information including: the variable name, the variable type, and a short description. cfglong.txt is similar except that it contains longer descriptions.

    Related Tip:

    Show all variables, not just some


     

    Determine your variables:
    A quick and easy way to see what variables have been defined for the active workspace is go to Workspace > Configuration and take a peek at the resulting dialog:

    In the graphic above we can easily see that the variable called MS_MACRO is used to define the location of macros. We can also see that in this case the variable is pointing to the following folders:
    c:\program files\bentley\workspace\system\macros\
    c:\program files\bentley\workspace\standards\macros\
    d:\production\macros\

    Another method of viewing variable definitions is to locate and open one of the configuration files used by MicroStation. For example, upon opening a User Configuration File with any text based editor you may see stuff like this:

    Lastly, to get a listing of what variables are being used and how they've been defined on your installation of MicroStation, follow these steps.

    Right-Click your MicroStation icon
    Append -debug to the target field.
    For a typical installation on Windows XP, it will read:
    "C:\Program Files\Bentley\Program\MicroStation\ustation.exe" -debug
    Start MicroStation

    This will build the following file which contains a listing of all variables and their definitions:
    ...\Program\MicroStation\msdebug.txt

    Once you've run a debug report, don't forget to remove the -debug switch from the MicroStation icon.

    AskInga Article #195

    • Askinga
    • Article
    • WorkSpacesConfiguration
    • Share
    • History
    • More
    • Cancel
    • Danielle Schutz Created by Bentley Colleague Danielle Schutz
    • When: Thu, May 22 2008 10:54 AM
    • Inga Morozoff Last revision by Bentley Colleague Inga Morozoff
    • When: Mon, Mar 26 2012 12:23 PM
    • 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