Guide to Using DWG and Other Formats
Guide to Using DWG and Other Formats
Guide to Using DWG and Other Formats
|
The Batch Converter utility converts individual files, or entire directories of files, from any of the CAD file formats supported by MicroStation to any other supported format.
When you use the Batch Converter, you can set up a series of individual file conversions, and save them to a batch conversion job file. Later, you can open the job file and rerun the conversion using the previously set job values. The batch job updates only the files that have changed since the last time the job was run.
The order in which a job's process 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 options that modify the order are enabled only when sorting by the “#” column in ascending order. |
If this step is not performed, the most recent option settings for the particular file format will be used. |
When feasible, output files are assigned the same filename as the source file. The output file timestamp is set to match the source file timestamp. When the source is in a MicroStation format and the output is an AutoCAD file, the output extension is automatically set to *.DWG or *.DXF as appropriate (all AutoCAD files must have the .DWG or .DXF extension). If there are multiple files with the same root name (differing only in extension) in the source directory, the extension is incorporated into the output file name.
Because the output file timestamp is set to match the source file timestamp, it is feasible to run a job frequently, updating the output versions of only those source files that have changed. It also makes it possible to restart a batch conversion job. When the destination file is up to date, the Status column indicates that fact. |
If MicroStation files are being converted to AutoCAD files and Save References As DWG/DXF is on in the DWG Save Options dialog box, the references of each source file are processed as well as the master file. In certain instances, this results in the automatic conversion of some files that are selected as source files in a subsequent task in the same job. When processing reaches such a file, its Status updates to Already Converted. |
When selecting files for batch conversion, you can use drag and drop to select files from Windows Explorer and drag them into the Conversion Tasks list box. When you drop files within an existing list of files in the list box, they are inserted between the rows in which your pointer is positioned.
Similarly, you can use drag and drop to reposition tasks in the Conversion Tasks list box. This applies only when tasks are sorted in the ascending order on the # field.
As part of a job's specified conversion tasks, you can also copy other types of files from directories that contain CAD files to convert. The configuration variable MS_BATCHCONVERT_COPYEXT specifies the extensions of files that will be copied from directories specified as a source for a conversion task. For example, to copy all the files with the extension “.rsc” or “.txt” to your output directory, define MS_BATCHCONVERT_COPYEXT as rsc;txt. In the default workspace, MS_BATCHCONVERT_COPYEXT is not defined, and the Batch Conversion dialog box therefore performs only file conversions.
To copy CAD files without converting them, simply set up a conversion task(s) for which the output and source formats are the same. |
If you plan to reuse the job setup in future jobs, you should save it to a batch conversion job file. This text file is similar to a Windows initialization file. It contains DWG open and save options, the log file name, and all conversion tasks. You can edit it in a text editor if desired.
If you change the job setup in MicroStation, you can save the modified setup to the same batch conversion job file by choosing File > Save or to a new file by choosing File > Save As.
You can run a job saved in a batch conversion job file directly from the system command line.