Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
MicroStation
  • Product Communities
MicroStation
[Archived] AskInga Wiki MS_RFDIR limitations
    • 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. 

    MS_RFDIR limitations

    AskInga logo 

    Original Tip Date: Feb 9, 2007

    MS_RFDIR limitations
     
    In MicroStation V8 2004 Edition and earlier, MS_RFDIR had a limit of about 30,000 characters it could "store" and about 255 characters for the paths.

    Although this was adequate for most situations, it posed a problem for those wanting to define/assign hundreds of folders to this variable and thus exceeding the 30,000 character limit. Add extra long folder paths and you're faced with limitations imposed by MS_RFDIR .

    Since MS_RFDIR does not accept wild cards, one simple solution is to utilize multiple project configuration files (PCF) to lighten the load. Or, depending upon your folder structure, to create custom variables that define a portion of the path and call those up with MS_RFDIR as shown below. This is especially useful for those extra long folder paths that exceed the path limit of MS_DIR.

    Instead of this:
    MS_RFDIR > H:/CAD/2007/CLIENT XYZ/0001/DGN/
    MS_RFDIR > H:/CAD/2007/CLIENT XYZ/0001/BORDERS/
    MS_RFDIR > H:/CAD/2007/CLIENT XYZ/0001/STEEL/
    MS_RFDIR > H:/CAD/2007/CLIENT XYZ/0001/FABRICATION/
    MS_RFDIR > H:/CAD/2007/CLIENT XYZ/0001/MECHANICAL/


    Try this - define a variable to replace H:/CAD/2007/CLIENT XYZ/0001/
    MS_0001 = H:/CAD/0001/2007/CLIENT XYZ/
    MS_RFDIR > $(MS_0001)/DGN/
    MS_RFDIR > $(MS_0001)/BORDERS/
    MS_RFDIR > $(MS_0001)/STEEL/
    MS_RFDIR > $(MS_0001)/FABRICATION/
    MS_RFDIR > $(MS_0001)/MECHANICAL/


    Or this:
    In THE project.pcf add the following:
    %include $(_USTN_WORKSPACEROOT)standards/refs.pcf

    And in the refs.pcf add:

    MS_RFDIR > $(Proj_Refs)
    MS_0001 = H:/CAD/0001/2007/CLIENT ABC/
    MS_0001 = H:/CAD/0001/2007/CLIENT XYZ/
    Proj_Refs > $(MS_0001)/STEEL/
    Proj_Refs > $(MS_0001)/FABRICATION/
    Proj_Refs > $(MS_0002)/STEEL/
    Proj_Refs > $(MS_0002)/FABRICATION/


    Note that in MicroStation V8 XM Edition the path and character limit for MS_RFDIR has been increased. With thanks to Greg Owen and Jason Dias for the additional tips.

     

     AskInga Tip #698

    • tip
    • Askinga
    • Reference Files
    • Share
    • History
    • More
    • Cancel
    • Nicholas Fuschino Created by Bentley Colleague Nicholas Fuschino
    • When: Tue, Jun 17 2008 4:22 PM
    • Inga Morozoff Last revision by Bentley Colleague Inga Morozoff
    • When: Tue, Jun 8 2010 4:18 PM
    • Revisions: 2
    • 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