Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
MicroStation
  • Product Communities
  • More
MicroStation
MicroStation Wiki Using The Batch Process Utility In MicroStation V8 [CS]
    • Sign in

    • -MicroStation Wiki
      • +Learning Tips
      • -MicroStation
        • +3D Printing - MicroStation
        • +Animation - MicroStation
        • +Archive / Backup - MicroStation
        • +Base Geometry - MicroStation
        • -Batch Processing - MicroStation
          • Batch process from command line with spaces in folder path.
          • Batch process subdirectories in main directory
          • Batch Process: Command to turn off a particular level in a reference file
          • Batch process: compress utility against multiple V7 files.
          • Batch Process: Toggle on/off display of specific levels in multiple design files (without references)
          • Batch processor stops responding (freezes)
          • Can the FENCE FILE or FF= commands be used in batch process?
          • Change color of all elements to white on multiple files
          • Change view attribute line weight keyin
          • Change working units for a number of files in batch process.
          • Converted DWG file size small using Batch Converter wrt File>Save As
          • Data Cleanup Key-in for batch process
          • How can I change all elements in multiple files to use the ByLevel color?
          • How to add subdirectories to a batch process
          • How to Change fill type using a key-in in batch processor
          • How to convert DWG references through the Batch Converter
          • How to ensure all files are gathered in Packager.
          • How to include subfolders in Batch Converter
          • Including reference files for Batch Convertion
          • Is there configuration variable to set the destination directory in batch converter?
          • Order in which Qualifier columns are honored in CSV remapping files.
          • Raster not attached in command line batch process
          • Running batch process from keyin
          • Unable to select specific Models when using Batch Conversion.
          • Upgrade V7 files to V8
          • Using The Batch Process Utility In MicroStation V8 [CS]
          • What are the switches for msbatch?
          • What is the syntax for MSBATCH IGESOUT and IGESIN?
        • +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
        • +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

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

    Using The Batch Process Utility In MicroStation V8 [CS]


    This Client Server article is republished in its entirety from 2006 for reference purposes.

    By the Bentley Technical Support Group
    27 March 2006 Modified: 05 April 2006

    Batch Process Utility

    The Batch Process Utility was incorporated into MicroStation V8 2004 Edition so you can create and run a script that can be used to change elements, delete levels, etc., within a file or directory of files. This utility can also have MicroStation Basic Macros, MDL applications, and VBA macros incorporated into the command file.

    To run the Batch utility go to the Utilities dropdown menu and select Batch Process. In the batch process dialog box, select new command file This article assumes you are using the utility for the first time. The command line file is where you will basically tell MicroStation what to do in the batch process on the DGN file or files. You can use basic key-ins or, if you are a programmer, you can use MDL or VBA.

    Here is the basic layout of a command file to delete a certain level and change the color and weight of another level:

    #----------------------------------------------------------------------
    #
    # Command file for batchprocess utility
    #
    # This command file was originally copied from $(MS_DATA)cmdfiletemplate.txt.
    # Command file information:
    # - Lines that start with the '#' character are treated as comments and ignored.
    #
    #----------------------------------------------------------------------


    level delete samplelevel #<-----This is the level you want to delete replace samplelevel with your level # name.


    active level samplelevel2 #<------Change samplefile2 with the file name you want to
    # change the weight and color of.
    active weight 3
    active color 1


    filedesign #<-----This will save settings when batch has finished.

    Here are screen shots before and after running the batch process.

     

    Before:

    After:

    These illustrations show just a few processes that can be run with the batch processor. You can also incorporate a macro or MDL using the key-in browser. To find the proper syntax for doing this, type "batch process" in the index field of the Help dropdown menu. In the list shown, double-click "batch process" and in the topics found dialog window select "Batch Process dialog box." You will find some commands for BASIC macros, VBA macros, and MDL applications. 

    See Also

    Client Server Archive

    MicroStation Desktop TechNotes and FAQs

    Comments or Corrections?

    Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!

    • client server 2006
    • Archived Client Server
    • client server
    • Share
    • History
    • More
    • Cancel
    • Elisa McGraw Created by Elisa McGraw
    • When: Tue, Jul 21 2009 1:45 PM
    • David Trejo-Rodriguez Last revision by Bentley Colleague David Trejo-Rodriguez
    • When: Mon, Sep 30 2019 6:02 PM
    • Revisions: 14
    • Comments: 3
    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