OpenPlant PID Help

Batch Process

The Batch Process dialog is used to create and run a script that can be performed on individual files or entire directories of files. The script is a text file that contains a series of MicroStation key-ins that can run commands, MicroStation BASIC macros, VBA macros, or MDL applications.

Opens when Utilities > Batch Process is chosen.

SettingDescription
Command File

Lists the command file (script) that contains the key-in commands. This script is run on each file in the Process Tasks list.

Browse for Command File : Lists the command file (script) that contains the key-in commands. This script is run on each file in the Process Tasks list.

Edit Command File: Opens the command file in a text editor window.

Create New Command File : Opens the Create Command File dialog. Enter a name for the new file and click OK. If the command file uses the default .txt extension, it opens in a text editor window.

Enter the MicroStation key-ins for MicroStation commands, MicroStation BASIC macros, VBA macros, and MDL applications.

Initial Model

Identifies the models that will be processed in each file: All Models, or Default Model Only.

After you select the files and directories to process, you can modify the Model setting for any of the files. To do this, click on and modify the Model setting in the Process Task list.

Alternatively, select the file in Process Tasks list. Choose the Initial Model setting, and click Apply to Selection.

Apply to Selection Applies the Initial Model setting to the files selected in the Process Tasks list.
Process Tasks

Lists the files that will be processed using the command file. The list also identifies the models in each file that will be processed. You can modify the Process Tasks list in the following ways:

  • The order in which the tasks will be processed is indicated by the sequence number column (which has the heading "#"). The task list can be sorted by any of the columns, but the Edit menu items that modify the order are enabled only when sorting by the "#"column in ascending order.
  • In the File column, you can add the wildcard string "*\" to the end of a directory to indicate that subdirectories will be included.
  • In the File column, you can designate that specific file types in the subdirectories will be included. For example, to process all files with the extension ".dgn" from directory "c:\projects\" and its subdirectories, you would edit the entry to read "c:\projects\*\*.dgn".
  • To modify the Model setting for a task, click on and modify the setting in the Process Tasks list.

File Menu

SettingDescription
New Batch Process Job

Available from the toolbar icon or from the File menu.

Saves the batch process settings to a new batch process job file. This option is available only when there are files listed in the Process Tasks list. Once you click this icon, you must verify that you want to save the settings. If you click Yes, the Save Batch Process Job File dialog opens. Enter a name for the job file and click OK.

Batch process job files use a *.bprc extension.

Key-in: BATCHPROCESS NEW

Open Batch Process Job

Available from the toolbar icon or from the File menu.

Opens an existing batch process job file. You can modify the settings, then rerun the batch process.

Once you click this icon, you have the option of saving the batch process settings to a batch process job file. Next, the Open Batch Process Job File dialog opens.

Key-in: BATCHPROCESS OPEN

Note: The controls on the Open Batch Process Job File dialog are analogous to those in the Open dialog.
Save Batch Process Job

Available from the toolbar icon or from the File menu.

Saves the batch process settings to a batch process job file.

Key-in: BATCHPROCESS SAVE

Save As

Opens the Save Batch Process Job File dialog, which lets you save the current batch process job file with a new name.

Key-in: BATCHPROCESS SAVEAS

Process Batch Process Job

Opens the Files to Process dialog, which lists all files to be processed.

Click Process to start the batch processing.

The Process button label automatically changes to Pause, and the Status column identifies the file being processed. Click Pause to pause processing between commands. Click Continue to restart processing.

When processing is complete, the Pause button label changes to Done.

Key-in: BATCHPROCESS PROCESS

Exit

Closes the Batch Process dialog. You may be prompted to save the batch process settings to a batch process job file.

Key-in: BATCHPROCESS EXIT

Edit Menu Options

SettingDescription
Add Files

Available from the toolbar icon or from the File menu.

Opens the Select Files and Directories to Process dialog. Select the directories or files to be processed, then click Add. The specifications for the selected directories or files are listed in the Selected Files list box.

If you change your mind about a previously selected directory or file, select it in this list box, then click Remove.

Key-in: BATCHPROCESS ADDDGN

Add Active Files Adds the active file to the list of files and directories to process.
Remove Files

Available from the toolbar or from the Edit menu.

Removes selected files from the Process Tasks list.

Key-in: BATCHPROCESS DGNREMOVE

Log Files Options

Opens the Log File Options dialog, which sets options for the log file generated during batch processing.

Key-in: BATCHPROCESS LOGFILEOPTS

Move Files to Top

Moves selected files in the Process Tasks list to the top of the list.

Key-in: BATCHPROCESS DGNTOP

Move Files Up

Moves selected files in the Process Tasks list up one position in the list.

Key-in: BATCHPROCESS DGNUP

Move Files Down

Moves selected files in the Process Tasks list down one position in the list.

Key-in: BATCHPROCESS DGNDOWN

Note: When files are sorted in ascending order on the # column, you can drag one or more files in the list box to the required location.
Move Files to Bottom

Moves selected files in the Process Tasks list to the bottom of the list.

Key-in: BATCHPROCESS DGNBOTTOM

Key-in Options

Key-in: BATCHPROCESS NEW
Key-in: BATCHPROCESS OPEN
Key-in: BATCHPROCESS SAVE
Key-in: BATCHPROCESS SAVEAS
Key-in: BATCHPROCESS PROCESS
Key-in: BATCHPROCESS EXIT
Key-in: BATCHPROCESS ADDDGN
Key-in: BATCHPROCESS DGNREMOVE
Key-in: BATCHPROCESS LOGFILEOPTS
Key-in: BATCHPROCESS DGNTOP
Key-in: BATCHPROCESS DGNUP
Key-in: BATCHPROCESS DGNDOWN
Key-in: BATCHPROCESS DGNBOTTOM