<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Using MSBATCH for command line processing </title><link>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing</link><description>Articles previously found in the &amp;quot;AskInga&amp;quot; Community.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Using MSBATCH for command line processing </title><link>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing</link><pubDate>Fri, 02 Mar 2012 12:24:38 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c629e2aa-a699-4330-848d-04e6f39b837b</guid><dc:creator>Phil Chouinard</dc:creator><comments>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing#comments</comments><description>Current Revision posted to [Archived] AskInga Wiki by Phil Chouinard on 3/2/2012 12:24:38 PM&lt;br /&gt;
&lt;p&gt;&lt;a href="/Communities/Other_Communities/AskInga/default.aspx"&gt;&lt;img title="AskInga" border="0" alt="AskInga logo" src="/askIngaPics/askingalogo.gif" width="230" height="76" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Original Article Date:&lt;/strong&gt;&amp;nbsp;&lt;em&gt;Feb 14, 2001&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Batch process can be run directly from the system command line by using a external process called &lt;em&gt;MSBATCH&lt;/em&gt;. With this utility you can do several things depending upon the version of MicroStation you&amp;#39;re using. For example, with V8 you can convert raster files, merge files, save to DWG, and replace cells.&lt;br /&gt;&lt;em&gt;2003-11-19&lt;/em&gt; Updated for clarity.&lt;br /&gt;&lt;em&gt;2007-01-09&lt;/em&gt; Reviewed and updated as necessary.&lt;br /&gt;&lt;em&gt;2007-05-14&lt;/em&gt; Updated V8 content.&lt;/p&gt;
&lt;div style="border-bottom:#cccccc 1pt solid;"&gt;&lt;/div&gt;
&lt;p&gt;MSBATCH is a delivered utility that runs from the command line and translates multiple files from one format to another. Although most commonly used with V7 MicroStation for converting AutoCAD drawing files into the V7 design file format, MSBATCH can also be used to:&lt;/p&gt;
&lt;table style="width:561px;margin-left:4.65pt;border-collapse:collapse;" class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0"&gt;
&lt;tbody&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td style="padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;height:20.1pt;padding-top:0cm;border:windowtext 1pt solid;" width="259"&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;font-family:Verdana;"&gt;Action&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="border-bottom:windowtext 1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;height:20.1pt;border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;padding-top:0cm;" width="193"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;font-family:Verdana;"&gt;Application&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="border-bottom:windowtext 1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;height:20.1pt;border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;padding-top:0cm;" width="109"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;font-family:Verdana;"&gt;Version&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="259"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Import / Export: DWG, DXF, and DXB&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="193"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;dwgin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;, &lt;span class="SpellE"&gt;dwgout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="109"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="259"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Import / Export: CGM&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="193"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;cgmin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;, &lt;span class="SpellE"&gt;cgmout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="109"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="259"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Import / Export: IGES&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="193"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;igesin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;, &lt;span class="SpellE"&gt;igesout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="109"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="259"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Import / Export:&lt;span&gt; &lt;/span&gt;GRD&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="193"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;grdin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;, &lt;span class="SpellE"&gt;grdout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="109"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="259"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Import:&lt;span&gt; &lt;/span&gt;&lt;span class="SpellE"&gt;VersaCAD&lt;/span&gt; 386&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="193"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;vcadin&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="109"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="259"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Convert 2D to 3D and 3D to 2D&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="193"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;cnvdgn&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="109"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;" width="259"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Convert Raster Images to other formats&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;" width="193"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;&lt;span class="SpellE"&gt;rastconv&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;" width="109"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;" width="259"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Merge Source file(s) into a destination file&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="193"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;merge&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="109"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="259"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Replace Cells &lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="193"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;repcell&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="109"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;" width="259"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Execute a Batch Process Job File (BPRC)&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="193"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Batch Process&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="109"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V8&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;" width="259"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Exceute&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt; a Batch Conversion Job (BCNV)&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="193"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Batch Convert&lt;/span&gt;&lt;/td&gt;
&lt;td style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;" width="109"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V8&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Watch that syntax!&lt;/strong&gt;&lt;br /&gt;MSBATCH is run from the directory that contains the executable and typically follows this syntax: &lt;em&gt;MSBATCH [application] option1 option2 option3&amp;hellip;&lt;/em&gt;. Although the syntax appears to be quite simple, the following should be kept in mind:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Run MSBATCH from the directory that contains the executable. In MicroStation J that would be: &lt;em&gt;..\Bentley\Program\Microstation\&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;MSBATCH will use the last settings found in the DWG/DXF Import/Export dialog box &amp;ndash; but that these can be overridden by command line options.&lt;/li&gt;
&lt;li&gt;Wildcards (*) and (?) can be used for specifying file names.&lt;/li&gt;
&lt;li&gt;All output directory parameters (outdwg, outdgn, o, outgrd and outname) must end with a backslash. For example, &lt;em&gt;outdwg:c:\temp\*.dwg&lt;/em&gt; will output all files to single dwg files, but &lt;em&gt;outdwg:c:\temp&lt;/em&gt; will output all files into one file called &lt;em&gt;temp.dgn&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Utilize MicroStations configuration variables or use full paths when specifying the file names.&lt;/li&gt;
&lt;li&gt;The entire MSBATCH statement must be keyed in on one line.&lt;/li&gt;
&lt;li&gt;Depending upon your operation system, an MSBatch statement which exceeds the DOS 128 character limit it may not run as expected. Should this occur, create an ASCII text file with extension of &lt;em&gt;.bat&lt;/em&gt; and type the entire MSBATCH statement on one line. To execute this MSBATCH statement, simply key in the batch file name from the command prompt.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;The Command Line Options:&lt;/strong&gt;&lt;br /&gt;With some of the translators it&amp;#39;s possible to obtain a list of the available command line options by keying in &lt;em&gt;MSBATCH [application]&lt;/em&gt; from the system command prompt. This is true for: dwgin, dwgout, cgmin, cgmout, igesin, igesout, cnvdgn and repcell - although this isn&amp;#39;t the case for all versions. &lt;br /&gt;&lt;br /&gt;Entering this keyin will display a table showing the valid parameters as well as an example of the syntax to be used.&lt;br /&gt;&lt;br /&gt;For instance, by keying in &lt;em&gt;MSBATCH DWGIN&lt;/em&gt;, you will be presented with the following information in a DOS window:&lt;/p&gt;
&lt;table style="width:100%;" border="0" cellpadding="6"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td valign="top" align="top"&gt;&lt;img border="0" align="left" src="/askIngaPics/52Pic1.jpg" alt="" /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;GRD Import:&lt;/strong&gt;&lt;br /&gt;In MicroStation V7 the &lt;em&gt;grdin&lt;/em&gt; translator doesn&amp;#39;t show the available options. In the event that you&amp;#39;d like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;&lt;em&gt;msbatch grdin [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;&lt;br /&gt;&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for import, overrides MS_GRDIN&lt;br /&gt;&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_DGNOUT&lt;br /&gt;&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDINSET&lt;br /&gt;&lt;br /&gt;For example, to convert GRD Files in \temp to DGN files in \dgn, the command would read:&lt;br /&gt;&lt;em&gt;msbatch grdin infile:c:\temp\*.grd outgrd:c:\dgn\&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;GRD Export:&lt;/strong&gt;&lt;br /&gt;In MicroStation V7 the &lt;em&gt;grdout&lt;/em&gt; translator doesn&amp;#39;t show the available options. In the event that you&amp;#39;d like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;&lt;em&gt;msbatch grdout [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;&lt;br /&gt;&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for export, overrides MS_DEF&lt;br /&gt;&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_GRDOUT&lt;br /&gt;&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDOUTSET&lt;br /&gt;&lt;br /&gt;For example, to convert DGN Files in \dgn to GRD files in \temp, the command would read:&lt;br /&gt;&lt;em&gt;msbatch grdout infile:c:\dgn\*.dgn outgrd:c:\temp\&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Raster Image Conversion:&lt;/strong&gt;&lt;br /&gt;Although you can use MSBATCH to handle multiple images, you may obtain better results and more control over output settings by using the Batch Conversion option delivered with the Raster Manager. Please refer to the delivered MicroStation HELP file for the specific syntax and available options.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Merging Design Files Together:&lt;/strong&gt;&lt;br /&gt;Let&amp;#39;s say you need to merge a dozen or so files into one single destination file. You could attach them as reference files and then use the Fence Copy tool..but that method has it&amp;#39;s problems. First of all it can be extremely inefficient and of course, there&amp;#39;s always the risk of duplicating your active design file elements. With that in mind, let&amp;#39;s take a look at using MSBATCH to merge files together.&lt;br /&gt;&lt;br /&gt;Say, we want to merge the entire contents of &lt;em&gt;source1.dgn&lt;/em&gt;, &lt;em&gt;source2.dgn&lt;/em&gt; and &lt;em&gt;source3.dgn&lt;/em&gt; into &lt;em&gt;dest.dgn&lt;/em&gt;.&lt;br /&gt;You can use the following syntax:&lt;br /&gt;&lt;em&gt;msbatch merge [destination_filename] [source_filename_1]... [source_filename_n]&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;For example, in both MicroStation V7 and V8, you&amp;#39;d use the following:&lt;br /&gt;&lt;em&gt;msbatch merge dest.dgn source1.dgn source2.dgn source3.dgn&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Of course &amp;ndash; the same results can be obtained by executing &lt;em&gt;Merge&lt;/em&gt; from the &lt;em&gt;MicroStation Manger &amp;gt; File&lt;/em&gt; menu.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Replacing cells:&lt;/strong&gt;&lt;br /&gt;To replace cells (excluding orphan cells) from the system command line, enter&lt;br /&gt;&lt;em&gt;msbatch repcell.ma [DGN_file] [cell_library] [y | n] [cell_to_replace] [replacement_cell]&lt;/em&gt; where:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;DGN_file&lt;/em&gt; is the DGN file on which to operate,&lt;br /&gt;&lt;em&gt;cell_library&lt;/em&gt; is the cell library that contains the replacement cell,&lt;br /&gt;&lt;em&gt;y&lt;/em&gt; keeps attributes,&lt;br /&gt;&lt;em&gt;n&lt;/em&gt; does not keep attributes,&lt;br /&gt;&lt;em&gt;cell_to_replace&lt;/em&gt; is the name of the cell in &lt;em&gt;DGN_file&lt;/em&gt; to replace, &lt;br /&gt;&lt;em&gt;replacement_cell&lt;/em&gt; is the name of the replacement cell in &lt;em&gt;cell_library&lt;/em&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Convert 3D to 2D&lt;/strong&gt;&lt;br /&gt;MSBATCH can be used to quickly convert 3D files to 2D or vice versa. To do so, use the following syntax:&lt;br /&gt;&lt;em&gt;msbatch cnvdgn inname: outname:&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;For example, to convert all files in &lt;em&gt;C:\3D\&lt;/em&gt; and place the resulting files in &lt;em&gt;C:\2D\&lt;/em&gt; the command would be as follows:&lt;br /&gt;&lt;em&gt;msbatch cnvdgn inname:c:\3d\*.dgn outname:c:\2d\&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Remember to include the trailing back-slash at the end of the outname. In addition, the file names can&amp;#39;t have any spaces and the output files can not be written to the same folder as the input files.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Batch Process Job File:&lt;/strong&gt;&lt;br /&gt;MSBATCH can also be used to kick off a MicroStation V8&amp;#39;s &lt;em&gt;Batch Process Job file&lt;/em&gt; by using this syntax:&lt;br /&gt;&lt;em&gt;msbatch batchprocess [batch_process_job_file_specification]&lt;/em&gt;&lt;br /&gt;Note, when using MSBATCH to kick off a VBA application, ensure that the command includes &lt;em&gt;MDL Load ustnvba&lt;/em&gt; at the beginning.&lt;br /&gt;With thanks to &lt;em&gt;Russ Webber&lt;/em&gt; for providing this information.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Batch Conversion Job File:&lt;/strong&gt;&lt;br /&gt;You can run a job saved in a batch conversion job file (BCNV) directly from the system command line by using MSBATCH and the following syntax:&lt;br /&gt;&lt;em&gt;msbatch batchconvert [batch_conversion_job_specification]&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Watch those settings:&lt;/strong&gt;&lt;br /&gt;Before bulk processing any files, it&amp;#39;s important to have fine-tuned your option settings and to have a good idea of what your end results are going to be. It&amp;#39;s strongly suggested to test one or two files first and tweak the necessary settings until you have satisfactory results. After all, it would be a shame to process hundreds of files only to realize after the fact that your settings were incorrect.&lt;br /&gt;&lt;br /&gt;In addition, you many experience a limit to the number of files that can be included in one batch when using MSBATCH. This limit is related to the amount of system resources available and will vary from system to system. Typically, the more physical memory and swap space available, the more files you can include in a single batch process.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Need more info?&lt;/strong&gt;&lt;br /&gt;&lt;a href="ftp://docs.bentley.com/pub/dl/pdfs/en/file_portability.exe"&gt;File Portability/Translation Guide&lt;/a&gt;&lt;br /&gt;&lt;a href="http://selectservices.bentley.com/en-US/Support/Support+Tools/TechNotes+and+FAQs/MicroStation+J/8187+-+Using+MSBATCH.htm"&gt;Using MSBATCH&lt;/a&gt;&lt;br /&gt;And of course the delivered documentation.&lt;/p&gt;
&lt;p&gt;AskInga Article #52&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Askinga, ConversionTranslation, Article, Windows Interacting with&lt;/div&gt;
</description></item><item><title>Using MSBATCH for command line processing </title><link>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing/revision/8</link><pubDate>Wed, 09 Jun 2010 12:48:24 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c629e2aa-a699-4330-848d-04e6f39b837b</guid><dc:creator>Inga Morozoff</dc:creator><comments>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing#comments</comments><description>Revision 8 posted to [Archived] AskInga Wiki by Inga Morozoff on 6/9/2010 12:48:24 PM&lt;br /&gt;
&lt;p&gt;&lt;a href="/Communities/Other_Communities/AskInga/default.aspx"&gt;&lt;img height="76" width="230" src="/askIngaPics/askingalogo.gif" alt="AskInga logo" border="0" title="AskInga" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Original Article Date:&lt;/strong&gt;&amp;nbsp;&lt;em&gt;Feb 14, 2001&lt;/em&gt; &lt;/p&gt;
&lt;p&gt;Batch process can be run directly from the system command line by using a external process called &lt;em&gt;MSBATCH&lt;/em&gt;. With this utility you can do several things depending upon the version of MicroStation you&amp;#39;re using. For example, with V8 you can convert raster files, merge files, save to DWG, and replace cells.&lt;br /&gt;&lt;em&gt;2003-11-19&lt;/em&gt; Updated for clarity.&lt;br /&gt;&lt;em&gt;2007-01-09&lt;/em&gt; Reviewed and updated as necessary.&lt;br /&gt;&lt;em&gt;2007-05-14&lt;/em&gt; Updated V8 content. &lt;/p&gt;
&lt;div style="border-bottom:#cccccc 1pt solid;"&gt;&lt;/div&gt;
&lt;p&gt;MSBATCH is a delivered utility that runs from the command line and translates multiple files from one format to another. Although most commonly used with V7 MicroStation for converting AutoCAD drawing files into the V7 design file format, MSBATCH can also be used to: &lt;/p&gt;
&lt;table cellpadding="0" cellspacing="0" border="0" class="MsoNormalTable" style="width:561px;border-collapse:collapse;margin-left:4.65pt;"&gt;
&lt;tbody&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td width="259" style="padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;height:20.1pt;padding-top:0cm;border:windowtext 1pt solid;"&gt;
&lt;p align="center" class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;font-family:Verdana;"&gt;Action&lt;/span&gt;&lt;/strong&gt; &lt;/p&gt;
&lt;/td&gt;
&lt;td width="193" style="border-bottom:windowtext 1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;height:20.1pt;border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;padding-top:0cm;"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;font-family:Verdana;"&gt;Application&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td width="109" style="border-bottom:windowtext 1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;height:20.1pt;border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;padding-top:0cm;"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;font-family:Verdana;"&gt;Version&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td width="259" style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Import / Export: DWG, DXF, and DXB&lt;/span&gt;&lt;/td&gt;
&lt;td width="193" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;dwgin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;, &lt;span class="SpellE"&gt;dwgout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td width="109" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td width="259" style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Import / Export: CGM&lt;/span&gt;&lt;/td&gt;
&lt;td width="193" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;cgmin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;, &lt;span class="SpellE"&gt;cgmout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td width="109" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td width="259" style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Import / Export: IGES&lt;/span&gt;&lt;/td&gt;
&lt;td width="193" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;igesin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;, &lt;span class="SpellE"&gt;igesout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td width="109" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td width="259" style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Import / Export:&lt;span&gt; &lt;/span&gt;GRD&lt;/span&gt;&lt;/td&gt;
&lt;td width="193" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;grdin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;, &lt;span class="SpellE"&gt;grdout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td width="109" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td width="259" style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Import:&lt;span&gt; &lt;/span&gt;&lt;span class="SpellE"&gt;VersaCAD&lt;/span&gt; 386&lt;/span&gt;&lt;/td&gt;
&lt;td width="193" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;vcadin&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td width="109" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td width="259" style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Convert 2D to 3D and 3D to 2D&lt;/span&gt;&lt;/td&gt;
&lt;td width="193" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;cnvdgn&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td width="109" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td width="259" style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Convert Raster Images to other formats&lt;/span&gt;&lt;/td&gt;
&lt;td width="193" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;&lt;span class="SpellE"&gt;rastconv&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td width="109" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td width="259" style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Merge Source file(s) into a destination file&lt;/span&gt;&lt;/td&gt;
&lt;td width="193" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;merge&lt;/span&gt;&lt;/td&gt;
&lt;td width="109" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td width="259" style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Replace Cells &lt;/span&gt;&lt;/td&gt;
&lt;td width="193" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;repcell&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td width="109" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td width="259" style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Execute a Batch Process Job File (BPRC)&lt;/span&gt;&lt;/td&gt;
&lt;td width="193" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Batch Process&lt;/span&gt;&lt;/td&gt;
&lt;td width="109" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V8&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:20.1pt;"&gt;
&lt;td width="259" style="border-bottom:1pt solid;border-left:1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:194pt;padding-right:5.4pt;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Exceute&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt; a Batch Conversion Job (BCNV)&lt;/span&gt;&lt;/td&gt;
&lt;td width="193" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:145pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;Batch Convert&lt;/span&gt;&lt;/td&gt;
&lt;td width="109" style="border-bottom:1pt solid;border-left:medium none;padding-bottom:0cm;padding-left:5.4pt;width:82pt;padding-right:5.4pt;background:white 0% 50%;height:20.1pt;border-top:medium none;border-right:1pt solid;padding-top:0cm;moz-background-clip:-moz-initial;moz-background-origin:-moz-initial;moz-background-inline-policy:-moz-initial;"&gt;&lt;span style="font-size:8pt;font-family:Verdana;"&gt;V8&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Watch that syntax!&lt;/strong&gt;&lt;br /&gt;MSBATCH is run from the directory that contains the executable and typically follows this syntax: &lt;em&gt;MSBATCH [application] option1 option2 option3&amp;hellip;&lt;/em&gt;. Although the syntax appears to be quite simple, the following should be kept in mind: &lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Run MSBATCH from the directory that contains the executable. In MicroStation J that would be: &lt;em&gt;..\Bentley\Program\Microstation\&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;MSBATCH will use the last settings found in the DWG/DXF Import/Export dialog box &amp;ndash; but that these can be overridden by command line options.&lt;/li&gt;
&lt;li&gt;Wildcards (*) and (?) can be used for specifying file names.&lt;/li&gt;
&lt;li&gt;All output directory parameters (outdwg, outdgn, o, outgrd and outname) must end with a backslash. For example, &lt;em&gt;outdwg:c:\temp\*.dwg&lt;/em&gt; will output all files to single dwg files, but &lt;em&gt;outdwg:c:\temp&lt;/em&gt; will output all files into one file called &lt;em&gt;temp.dgn&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Utilize MicroStations configuration variables or use full paths when specifying the file names.&lt;/li&gt;
&lt;li&gt;The entire MSBATCH statement must be keyed in on one line.&lt;/li&gt;
&lt;li&gt;Depending upon your operation system, an MSBatch statement which exceeds the DOS 128 character limit it may not run as expected. Should this occur, create an ASCII text file with extension of &lt;em&gt;.bat&lt;/em&gt; and type the entire MSBATCH statement on one line. To execute this MSBATCH statement, simply key in the batch file name from the command prompt.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;The Command Line Options:&lt;/strong&gt;&lt;br /&gt;With some of the translators it&amp;#39;s possible to obtain a list of the available command line options by keying in &lt;em&gt;MSBATCH [application]&lt;/em&gt; from the system command prompt. This is true for: dwgin, dwgout, cgmin, cgmout, igesin, igesout, cnvdgn and repcell - although this isn&amp;#39;t the case for all versions. &lt;br /&gt;&lt;br /&gt;Entering this keyin will display a table showing the valid parameters as well as an example of the syntax to be used.&lt;br /&gt;&lt;br /&gt;For instance, by keying in &lt;em&gt;MSBATCH DWGIN&lt;/em&gt;, you will be presented with the following information in a DOS window: &lt;/p&gt;
&lt;table cellpadding="6" border="0" style="width:100%;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align="top" valign="top"&gt;&lt;img src="/askIngaPics/52Pic1.jpg" align="left" border="0" alt="" /&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;GRD Import:&lt;/strong&gt;&lt;br /&gt;In MicroStation V7 the &lt;em&gt;grdin&lt;/em&gt; translator doesn&amp;#39;t show the available options. In the event that you&amp;#39;d like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;&lt;em&gt;msbatch grdin [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;&lt;br /&gt;&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for import, overrides MS_GRDIN&lt;br /&gt;&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_DGNOUT&lt;br /&gt;&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDINSET&lt;br /&gt;&lt;br /&gt;For example, to convert GRD Files in \temp to DGN files in \dgn, the command would read:&lt;br /&gt;&lt;em&gt;msbatch grdin infile:c:\temp\*.grd outgrd:c:\dgn\&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;GRD Export:&lt;/strong&gt;&lt;br /&gt;In MicroStation V7 the &lt;em&gt;grdout&lt;/em&gt; translator doesn&amp;#39;t show the available options. In the event that you&amp;#39;d like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;&lt;em&gt;msbatch grdout [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;&lt;br /&gt;&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for export, overrides MS_DEF&lt;br /&gt;&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_GRDOUT&lt;br /&gt;&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDOUTSET&lt;br /&gt;&lt;br /&gt;For example, to convert DGN Files in \dgn to GRD files in \temp, the command would read:&lt;br /&gt;&lt;em&gt;msbatch grdout infile:c:\dgn\*.dgn outgrd:c:\temp\&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Raster Image Conversion:&lt;/strong&gt;&lt;br /&gt;Although you can use MSBATCH to handle multiple images, you may obtain better results and more control over output settings by using the Batch Conversion option delivered with the Raster Manager. Please refer to the delivered MicroStation HELP file for the specific syntax and available options.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Merging Design Files Together:&lt;/strong&gt;&lt;br /&gt;Let&amp;#39;s say you need to merge a dozen or so files into one single destination file. You could attach them as reference files and then use the Fence Copy tool..but that method has it&amp;#39;s problems. First of all it can be extremely inefficient and of course, there&amp;#39;s always the risk of duplicating your active design file elements. With that in mind, let&amp;#39;s take a look at using MSBATCH to merge files together.&lt;br /&gt;&lt;br /&gt;Say, we want to merge the entire contents of &lt;em&gt;source1.dgn&lt;/em&gt;, &lt;em&gt;source2.dgn&lt;/em&gt; and &lt;em&gt;source3.dgn&lt;/em&gt; into &lt;em&gt;dest.dgn&lt;/em&gt;.&lt;br /&gt;You can use the following syntax:&lt;br /&gt;&lt;em&gt;msbatch merge [destination_filename] [source_filename_1]... [source_filename_n]&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;For example, in both MicroStation V7 and V8, you&amp;#39;d use the following:&lt;br /&gt;&lt;em&gt;msbatch merge dest.dgn source1.dgn source2.dgn source3.dgn&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Of course &amp;ndash; the same results can be obtained by executing &lt;em&gt;Merge&lt;/em&gt; from the &lt;em&gt;MicroStation Manger &amp;gt; File&lt;/em&gt; menu.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Replacing cells:&lt;/strong&gt;&lt;br /&gt;To replace cells (excluding orphan cells) from the system command line, enter&lt;br /&gt;&lt;em&gt;msbatch repcell.ma [DGN_file] [cell_library] [y | n] [cell_to_replace] [replacement_cell]&lt;/em&gt; where:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;DGN_file&lt;/em&gt; is the DGN file on which to operate,&lt;br /&gt;&lt;em&gt;cell_library&lt;/em&gt; is the cell library that contains the replacement cell,&lt;br /&gt;&lt;em&gt;y&lt;/em&gt; keeps attributes,&lt;br /&gt;&lt;em&gt;n&lt;/em&gt; does not keep attributes,&lt;br /&gt;&lt;em&gt;cell_to_replace&lt;/em&gt; is the name of the cell in &lt;em&gt;DGN_file&lt;/em&gt; to replace, &lt;br /&gt;&lt;em&gt;replacement_cell&lt;/em&gt; is the name of the replacement cell in &lt;em&gt;cell_library&lt;/em&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Convert 3D to 2D&lt;/strong&gt;&lt;br /&gt;MSBATCH can be used to quickly convert 3D files to 2D or vice versa. To do so, use the following syntax:&lt;br /&gt;&lt;em&gt;msbatch cnvdgn inname: outname:&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;For example, to convert all files in &lt;em&gt;C:\3D\&lt;/em&gt; and place the resulting files in &lt;em&gt;C:\2D\&lt;/em&gt; the command would be as follows:&lt;br /&gt;&lt;em&gt;msbatch inname:c:\3d\*.dgn outname:c:\2d\&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Remember to include the trailing back-slash at the end of the outname. In addition, the file names can&amp;#39;t have any spaces and the output files can not be written to the same folder as the input files.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Batch Process Job File:&lt;/strong&gt;&lt;br /&gt;MSBATCH can also be used to kick off a MicroStation V8&amp;#39;s &lt;em&gt;Batch Process Job file&lt;/em&gt; by using this syntax:&lt;br /&gt;&lt;em&gt;msbatch batchprocess [batch_process_job_file_specification]&lt;/em&gt;&lt;br /&gt;Note, when using MSBATCH to kick off a VBA application, ensure that the command includes &lt;em&gt;MDL Load ustnvba&lt;/em&gt; at the beginning.&lt;br /&gt;With thanks to &lt;em&gt;Russ Webber&lt;/em&gt; for providing this information.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Batch Conversion Job File:&lt;/strong&gt;&lt;br /&gt;You can run a job saved in a batch conversion job file (BCNV) directly from the system command line by using MSBATCH and the following syntax:&lt;br /&gt;&lt;em&gt;msbatch batchconvert [batch_conversion_job_specification]&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Watch those settings:&lt;/strong&gt;&lt;br /&gt;Before bulk processing any files, it&amp;#39;s important to have fine-tuned your option settings and to have a good idea of what your end results are going to be. It&amp;#39;s strongly suggested to test one or two files first and tweak the necessary settings until you have satisfactory results. After all, it would be a shame to process hundreds of files only to realize after the fact that your settings were incorrect.&lt;br /&gt;&lt;br /&gt;In addition, you many experience a limit to the number of files that can be included in one batch when using MSBATCH. This limit is related to the amount of system resources available and will vary from system to system. Typically, the more physical memory and swap space available, the more files you can include in a single batch process.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Need more info?&lt;/strong&gt;&lt;br /&gt;&lt;a&gt;File Portability/Translation Guide&lt;/a&gt;&lt;br /&gt;&lt;a href="http://selectservices.bentley.com/en-US/Support/Support+Tools/TechNotes+and+FAQs/MicroStation+J/8187+-+Using+MSBATCH.htm"&gt;Using MSBATCH&lt;/a&gt;&lt;br /&gt;And of course the delivered documentation. &lt;/p&gt;
&lt;p&gt;AskInga Article #52 &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Article, Askinga, ConversionTranslation, Windows Interacting with&lt;/div&gt;
</description></item><item><title>Using MSBATCH for command line processing </title><link>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing/revision/7</link><pubDate>Fri, 20 Jun 2008 12:34:05 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c629e2aa-a699-4330-848d-04e6f39b837b</guid><dc:creator>Hannah Blye</dc:creator><comments>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing#comments</comments><description>Revision 7 posted to [Archived] AskInga Wiki by Hannah Blye on 6/20/2008 12:34:05 PM&lt;br /&gt;
&lt;p&gt;
&lt;a href="/Communities/Other_Communities/AskInga/default.aspx"&gt;&lt;img src="/askIngaPics/askingalogo.gif" border="0" alt="AskInga logo" title="AskInga" width="230" height="76" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Original Article Date:&lt;/strong&gt;&amp;nbsp;&lt;em&gt;Feb 14, 2001&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
Batch process can be run directly from the system command line by using a external process called &lt;em&gt;MSBATCH&lt;/em&gt;. With this utility you can do several things depending upon the version of MicroStation you're using. For example, with V8 you can convert raster files, merge files, save to DWG, and replace cells.&lt;br /&gt;
&lt;em&gt;2003-11-19&lt;/em&gt; Updated for clarity.&lt;br /&gt;
&lt;em&gt;2007-01-09&lt;/em&gt; Reviewed and updated as necessary.&lt;br /&gt;
&lt;em&gt;2007-05-14&lt;/em&gt; Updated V8 content. 
&lt;/p&gt;
&lt;div style="border-bottom: #cccccc 1pt solid"&gt;
&lt;/div&gt;
&lt;p&gt;
MSBATCH is a delivered utility that runs from the command line and translates multiple files from one format to another. Although most commonly used with V7 MicroStation for converting AutoCAD drawing files into the V7 design file format, MSBATCH can also be used to: 
&lt;/p&gt;
&lt;table border="0" cellspacing="0" cellpadding="0" width="561" class="MsoNormalTable" style="margin-left: 4.65pt; width: 421pt; border-collapse: collapse"&gt;
	&lt;tbody&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0cm; width: 194pt; padding-top: 0cm; height: 20.1pt; border: windowtext 1pt solid"&gt;
			&lt;p class="MsoNormal" align="center"&gt;
			&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Action&lt;/span&gt;&lt;/strong&gt; 
			&lt;/p&gt;
			&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Application&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Version&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: DWG, DXF, and DXB&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;dwgin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;dwgout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: CGM&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;cgmin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;cgmout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: IGES&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;igesin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;igesout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export:&lt;span&gt; &lt;/span&gt;GRD&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;grdin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;grdout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import:&lt;span&gt; &lt;/span&gt;&lt;span class="SpellE"&gt;VersaCAD&lt;/span&gt; 386&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;vcadin&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Convert 2D to 3D and 3D to 2D&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;cnvdgn&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Convert Raster Images to other formats&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;&lt;span class="SpellE"&gt;rastconv&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Merge Source file(s) into a destination file&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;merge&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Replace Cells &lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;repcell&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Execute a Batch Process Job File (BPRC)&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Batch Process&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Exceute&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt; a Batch Conversion Job (BCNV)&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Batch Convert&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white 0% 50%; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: 1pt solid; height: 20.1pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;strong&gt;Watch that syntax!&lt;/strong&gt;&lt;br /&gt;
MSBATCH is run from the directory that contains the executable and typically follows this syntax: &lt;em&gt;MSBATCH [application] option1 option2 option3&amp;hellip;&lt;/em&gt;. Although the syntax appears to be quite simple, the following should be kept in mind: 
&lt;/p&gt;
&lt;li&gt;Run MSBATCH from the directory that contains the executable. In MicroStation J that would be: &lt;em&gt;..\Bentley\Program\Microstation\&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;MSBATCH will use the last settings found in the DWG/DXF Import/Export dialog box &amp;ndash; but that these can be overridden by command line options.&lt;/li&gt;
&lt;li&gt;Wildcards (*) and (?) can be used for specifying file names.&lt;/li&gt;
&lt;li&gt;All output directory parameters (outdwg, outdgn, o, outgrd and outname) must end with a backslash. For example, &lt;em&gt;outdwg:c:\temp\*.dwg&lt;/em&gt; will output all files to single dwg files, but &lt;em&gt;outdwg:c:\temp&lt;/em&gt; will output all files into one file called &lt;em&gt;temp.dgn&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Utilize MicroStations configuration variables or use full paths when specifying the file names.&lt;/li&gt;
&lt;li&gt;The entire MSBATCH statement must be keyed in on one line.&lt;/li&gt;
&lt;li&gt;Depending upon your operation system, an MSBatch statement which exceeds the DOS 128 character limit it may not run as expected. Should this occur, create an ASCII text file with extension of &lt;em&gt;.bat&lt;/em&gt; and type the entire MSBATCH statement on one line. To execute this MSBATCH statement, simply key in the batch file name from the command prompt.&lt;/li&gt;&lt;br /&gt;
&lt;strong&gt;The Command Line Options:&lt;/strong&gt;&lt;br /&gt;
With some of the translators it's possible to obtain a list of the available command line options by keying in &lt;em&gt;MSBATCH [application]&lt;/em&gt; from the system command prompt. This is true for: dwgin, dwgout, cgmin, cgmout, igesin, igesout, cnvdgn and repcell - although this isn't the case for all versions. &lt;br /&gt;
&lt;br /&gt;
Entering this keyin will display a table showing the valid parameters as well as an example of the syntax to be used.&lt;br /&gt;
&lt;br /&gt;
For instance, by keying in &lt;em&gt;MSBATCH DWGIN&lt;/em&gt;, you will be presented with the following information in a DOS window: 
&lt;table border="0" cellpadding="6" width="100%"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td align="top" valign="top"&gt;&lt;img src="/askIngaPics/52Pic1.jpg" border="0" align="left" /&gt; &lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;strong&gt;GRD Import:&lt;/strong&gt;&lt;br /&gt;
In MicroStation V7 the &lt;em&gt;grdin&lt;/em&gt; translator doesn't show the available options. In the event that you'd like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;
&lt;em&gt;msbatch grdin [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for import, overrides MS_GRDIN&lt;br /&gt;
&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_DGNOUT&lt;br /&gt;
&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDINSET&lt;br /&gt;
&lt;br /&gt;
For example, to convert GRD Files in \temp to DGN files in \dgn, the command would read:&lt;br /&gt;
&lt;em&gt;msbatch grdin infile:c:\temp\*.grd outgrd:c:\dgn\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;GRD Export:&lt;/strong&gt;&lt;br /&gt;
In MicroStation V7 the &lt;em&gt;grdout&lt;/em&gt; translator doesn't show the available options. In the event that you'd like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;
&lt;em&gt;msbatch grdout [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for export, overrides MS_DEF&lt;br /&gt;
&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_GRDOUT&lt;br /&gt;
&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDOUTSET&lt;br /&gt;
&lt;br /&gt;
For example, to convert DGN Files in \dgn to GRD files in \temp, the command would read:&lt;br /&gt;
&lt;em&gt;msbatch grdout infile:c:\dgn\*.dgn outgrd:c:\temp\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Raster Image Conversion:&lt;/strong&gt;&lt;br /&gt;
Although you can use MSBATCH to handle multiple images, you may obtain better results and more control over output settings by using the Batch Conversion option delivered with the Raster Manager. Please refer to the delivered MicroStation HELP file for the specific syntax and available options.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Merging Design Files Together:&lt;/strong&gt;&lt;br /&gt;
Let's say you need to merge a dozen or so files into one single destination file. You could attach them as reference files and then use the Fence Copy tool..but that method has it's problems. First of all it can be extremely inefficient and of course, there's always the risk of duplicating your active design file elements. With that in mind, let's take a look at using MSBATCH to merge files together.&lt;br /&gt;
&lt;br /&gt;
Say, we want to merge the entire contents of &lt;em&gt;source1.dgn&lt;/em&gt;, &lt;em&gt;source2.dgn&lt;/em&gt; and &lt;em&gt;source3.dgn&lt;/em&gt; into &lt;em&gt;dest.dgn&lt;/em&gt;.&lt;br /&gt;
You can use the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch merge [destination_filename] [source_filename_1]... [source_filename_n]&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
For example, in both MicroStation V7 and V8, you'd use the following:&lt;br /&gt;
&lt;em&gt;msbatch merge dest.dgn source1.dgn source2.dgn source3.dgn&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Of course &amp;ndash; the same results can be obtained by executing &lt;em&gt;Merge&lt;/em&gt; from the &lt;em&gt;MicroStation Manger &amp;gt; File&lt;/em&gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Replacing cells:&lt;/strong&gt;&lt;br /&gt;
To replace cells (excluding orphan cells) from the system command line, enter&lt;br /&gt;
&lt;em&gt;msbatch repcell.ma [DGN_file] [cell_library] [y | n] [cell_to_replace] [replacement_cell]&lt;/em&gt; where:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;DGN_file&lt;/em&gt; is the DGN file on which to operate,&lt;br /&gt;
&lt;em&gt;cell_library&lt;/em&gt; is the cell library that contains the replacement cell,&lt;br /&gt;
&lt;em&gt;y&lt;/em&gt; keeps attributes,&lt;br /&gt;
&lt;em&gt;n&lt;/em&gt; does not keep attributes,&lt;br /&gt;
&lt;em&gt;cell_to_replace&lt;/em&gt; is the name of the cell in &lt;em&gt;DGN_file&lt;/em&gt; to replace, &lt;br /&gt;
&lt;em&gt;replacement_cell&lt;/em&gt; is the name of the replacement cell in &lt;em&gt;cell_library&lt;/em&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Convert 3D to 2D&lt;/strong&gt;&lt;br /&gt;
MSBATCH can be used to quickly convert 3D files to 2D or vice versa. To do so, use the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch cnvdgn inname: outname:&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
For example, to convert all files in &lt;em&gt;C:\3D\&lt;/em&gt; and place the resulting files in &lt;em&gt;C:\2D\&lt;/em&gt; the command would be as follows:&lt;br /&gt;
&lt;em&gt;msbatch inname:c:\3d\*.dgn outname:c:\2d\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Remember to include the trailing back-slash at the end of the outname. In addition, the file names can't have any spaces and the output files can not be written to the same folder as the input files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Batch Process Job File:&lt;/strong&gt;&lt;br /&gt;
MSBATCH can also be used to kick off a MicroStation V8's &lt;em&gt;Batch Process Job file&lt;/em&gt; by using this syntax:&lt;br /&gt;
&lt;em&gt;msbatch batchprocess [batch_process_job_file_specification]&lt;/em&gt;&lt;br /&gt;
Note, when using MSBATCH to kick off a VBA application, ensure that the command includes &lt;em&gt;MDL Load ustnvba&lt;/em&gt; at the beginning.&lt;br /&gt;
With thanks to &lt;em&gt;Russ Webber&lt;/em&gt; for providing this information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Batch Conversion Job File:&lt;/strong&gt;&lt;br /&gt;
You can run a job saved in a batch conversion job file (BCNV) directly from the system command line by using MSBATCH and the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch batchconvert [batch_conversion_job_specification]&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Watch those settings:&lt;/strong&gt;&lt;br /&gt;
Before bulk processing any files, it's important to have fine-tuned your option settings and to have a good idea of what your end results are going to be. It's strongly suggested to test one or two files first and tweak the necessary settings until you have satisfactory results. After all, it would be a shame to process hundreds of files only to realize after the fact that your settings were incorrect.&lt;br /&gt;
&lt;br /&gt;
In addition, you many experience a limit to the number of files that can be included in one batch when using MSBATCH. This limit is related to the amount of system resources available and will vary from system to system. Typically, the more physical memory and swap space available, the more files you can include in a single batch process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Need more info?&lt;/strong&gt;&lt;br /&gt;
&lt;a href="ftp://docs.bentley.com/pub/dl/pdfs/en/file_portability.exe"&gt;File Portability/Translation Guide&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://selectservices.bentley.com/en-US/Support/Support+Tools/TechNotes+and+FAQs/MicroStation+J/8187+-+Using+MSBATCH.htm"&gt;Using MSBATCH&lt;/a&gt;&lt;br /&gt;
And of course the delivered documentation. 
&lt;/p&gt;
&lt;p&gt;
AskInga Article #52 
&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Article, Askinga, ConversionTranslation, Windows Interacting with&lt;/div&gt;
</description></item><item><title>Using MSBATCH for command line processing </title><link>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing/revision/6</link><pubDate>Wed, 11 Jun 2008 12:39:12 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c629e2aa-a699-4330-848d-04e6f39b837b</guid><dc:creator>jdeg</dc:creator><comments>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing#comments</comments><description>Revision 6 posted to [Archived] AskInga Wiki by jdeg on 6/11/2008 12:39:12 PM&lt;br /&gt;
&lt;p&gt;
&lt;a href="/UserGroups/GroupDetail.aspx?groupID=111"&gt;&lt;img src="/askIngaPics/askingalogo.gif" border="0" alt="AskInga logo" title="AskInga" width="230" height="76" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Batch process can be run directly from the system command line by using a external process called &lt;em&gt;MSBATCH&lt;/em&gt;. With this utility you can do several things depending upon the version of MicroStation you're using. For example, with V8 you can convert raster files, merge files, save to DWG, and replace cells.&lt;br /&gt;
&lt;em&gt;2001-02-14&lt;/em&gt; Original posting date.&lt;br /&gt;
&lt;em&gt;2003-11-19&lt;/em&gt; Updated for clarity.&lt;br /&gt;
&lt;em&gt;2007-01-09&lt;/em&gt; Reviewed and updated as necessary.&lt;br /&gt;
&lt;em&gt;2007-05-14&lt;/em&gt; Updated V8 content. 
&lt;/p&gt;
&lt;div style="border-bottom: 1pt solid #cccccc"&gt;
&lt;/div&gt;
&lt;p&gt;
MSBATCH is a delivered utility that runs from the command line and translates multiple files from one format to another. Although most commonly used with V7 MicroStation for converting AutoCAD drawing files into the V7 design file format, MSBATCH can also be used to: 
&lt;/p&gt;
&lt;table border="0" cellspacing="0" cellpadding="0" width="561" class="MsoNormalTable" style="margin-left: 4.65pt; width: 421pt; border-collapse: collapse"&gt;
	&lt;tbody&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border: 1pt solid windowtext; padding: 0cm 5.4pt; width: 194pt; height: 20.1pt"&gt;
			&lt;p class="MsoNormal" align="center"&gt;
			&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Action&lt;/span&gt;&lt;/strong&gt; 
			&lt;/p&gt;
			&lt;/td&gt;
			&lt;td width="193" style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; width: 145pt; height: 20.1pt"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Application&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; width: 82pt; height: 20.1pt"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Version&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: DWG, DXF, and DXB&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;dwgin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;dwgout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: CGM&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;cgmin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;cgmout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: IGES&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;igesin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;igesout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export:&lt;span&gt; &lt;/span&gt;GRD&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;grdin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;grdout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import:&lt;span&gt; &lt;/span&gt;&lt;span class="SpellE"&gt;VersaCAD&lt;/span&gt; 386&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;vcadin&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Convert 2D to 3D and 3D to 2D&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;cnvdgn&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Convert Raster Images to other formats&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 145pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;&lt;span class="SpellE"&gt;rastconv&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Merge Source file(s) into a destination file&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;merge&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Replace Cells &lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;repcell&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Execute a Batch Process Job File (BPRC)&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Batch Process&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 194pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Exceute&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt; a Batch Conversion Job (BCNV)&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Batch Convert&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;strong&gt;Watch that syntax!&lt;/strong&gt;&lt;br /&gt;
MSBATCH is run from the directory that contains the executable and typically follows this syntax: &lt;em&gt;MSBATCH [application] option1 option2 option3&amp;hellip;&lt;/em&gt;. Although the syntax appears to be quite simple, the following should be kept in mind: 
&lt;/p&gt;
&lt;li&gt;Run MSBATCH from the directory that contains the executable. In MicroStation J that would be: &lt;em&gt;..\Bentley\Program\Microstation\&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;MSBATCH will use the last settings found in the DWG/DXF Import/Export dialog box &amp;ndash; but that these can be overridden by command line options.&lt;/li&gt;
&lt;li&gt;Wildcards (*) and (?) can be used for specifying file names.&lt;/li&gt;
&lt;li&gt;All output directory parameters (outdwg, outdgn, o, outgrd and outname) must end with a backslash. For example, &lt;em&gt;outdwg:c:\temp\*.dwg&lt;/em&gt; will output all files to single dwg files, but &lt;em&gt;outdwg:c:\temp&lt;/em&gt; will output all files into one file called &lt;em&gt;temp.dgn&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Utilize MicroStations configuration variables or use full paths when specifying the file names.&lt;/li&gt;
&lt;li&gt;The entire MSBATCH statement must be keyed in on one line.&lt;/li&gt;
&lt;li&gt;Depending upon your operation system, an MSBatch statement which exceeds the DOS 128 character limit it may not run as expected. Should this occur, create an ASCII text file with extension of &lt;em&gt;.bat&lt;/em&gt; and type the entire MSBATCH statement on one line. To execute this MSBATCH statement, simply key in the batch file name from the command prompt.&lt;/li&gt;
&lt;br /&gt;
&lt;strong&gt;The Command Line Options:&lt;/strong&gt;&lt;br /&gt;
With some of the translators it's possible to obtain a list of the available command line options by keying in &lt;em&gt;MSBATCH [application]&lt;/em&gt; from the system command prompt. This is true for: dwgin, dwgout, cgmin, cgmout, igesin, igesout, cnvdgn and repcell - although this isn't the case for all versions. &lt;br /&gt;
&lt;br /&gt;
Entering this keyin will display a table showing the valid parameters as well as an example of the syntax to be used.&lt;br /&gt;
&lt;br /&gt;
For instance, by keying in &lt;em&gt;MSBATCH DWGIN&lt;/em&gt;, you will be presented with the following information in a DOS window: 
&lt;table border="0" cellpadding="6" width="100%"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td align="top" valign="top"&gt;&lt;img src="/askIngaPics/52Pic1.jpg" border="0" align="left" /&gt; &lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;strong&gt;GRD Import:&lt;/strong&gt;&lt;br /&gt;
In MicroStation V7 the &lt;em&gt;grdin&lt;/em&gt; translator doesn't show the available options. In the event that you'd like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;
&lt;em&gt;msbatch grdin [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for import, overrides MS_GRDIN&lt;br /&gt;
&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_DGNOUT&lt;br /&gt;
&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDINSET&lt;br /&gt;
&lt;br /&gt;
For example, to convert GRD Files in \temp to DGN files in \dgn, the command would read:&lt;br /&gt;
&lt;em&gt;msbatch grdin infile:c:\temp\*.grd outgrd:c:\dgn\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;GRD Export:&lt;/strong&gt;&lt;br /&gt;
In MicroStation V7 the &lt;em&gt;grdout&lt;/em&gt; translator doesn't show the available options. In the event that you'd like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;
&lt;em&gt;msbatch grdout [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for export, overrides MS_DEF&lt;br /&gt;
&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_GRDOUT&lt;br /&gt;
&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDOUTSET&lt;br /&gt;
&lt;br /&gt;
For example, to convert DGN Files in \dgn to GRD files in \temp, the command would read:&lt;br /&gt;
&lt;em&gt;msbatch grdout infile:c:\dgn\*.dgn outgrd:c:\temp\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Raster Image Conversion:&lt;/strong&gt;&lt;br /&gt;
Although you can use MSBATCH to handle multiple images, you may obtain better results and more control over output settings by using the Batch Conversion option delivered with the Raster Manager. Please refer to the delivered MicroStation HELP file for the specific syntax and available options.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Merging Design Files Together:&lt;/strong&gt;&lt;br /&gt;
Let's say you need to merge a dozen or so files into one single destination file. You could attach them as reference files and then use the Fence Copy tool..but that method has it's problems. First of all it can be extremely inefficient and of course, there's always the risk of duplicating your active design file elements. With that in mind, let's take a look at using MSBATCH to merge files together.&lt;br /&gt;
&lt;br /&gt;
Say, we want to merge the entire contents of &lt;em&gt;source1.dgn&lt;/em&gt;, &lt;em&gt;source2.dgn&lt;/em&gt; and &lt;em&gt;source3.dgn&lt;/em&gt; into &lt;em&gt;dest.dgn&lt;/em&gt;.&lt;br /&gt;
You can use the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch merge [destination_filename] [source_filename_1]... [source_filename_n]&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
For example, in both MicroStation V7 and V8, you'd use the following:&lt;br /&gt;
&lt;em&gt;msbatch merge dest.dgn source1.dgn source2.dgn source3.dgn&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Of course &amp;ndash; the same results can be obtained by executing &lt;em&gt;Merge&lt;/em&gt; from the &lt;em&gt;MicroStation Manger &amp;gt; File&lt;/em&gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Replacing cells:&lt;/strong&gt;&lt;br /&gt;
To replace cells (excluding orphan cells) from the system command line, enter&lt;br /&gt;
&lt;em&gt;msbatch repcell.ma [DGN_file] [cell_library] [y | n] [cell_to_replace] [replacement_cell]&lt;/em&gt; where:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;DGN_file&lt;/em&gt; is the DGN file on which to operate,&lt;br /&gt;
&lt;em&gt;cell_library&lt;/em&gt; is the cell library that contains the replacement cell,&lt;br /&gt;
&lt;em&gt;y&lt;/em&gt; keeps attributes,&lt;br /&gt;
&lt;em&gt;n&lt;/em&gt; does not keep attributes,&lt;br /&gt;
&lt;em&gt;cell_to_replace&lt;/em&gt; is the name of the cell in &lt;em&gt;DGN_file&lt;/em&gt; to replace, &lt;br /&gt;
&lt;em&gt;replacement_cell&lt;/em&gt; is the name of the replacement cell in &lt;em&gt;cell_library&lt;/em&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Convert 3D to 2D&lt;/strong&gt;&lt;br /&gt;
MSBATCH can be used to quickly convert 3D files to 2D or vice versa. To do so, use the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch cnvdgn inname: outname:&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
For example, to convert all files in &lt;em&gt;C:\3D\&lt;/em&gt; and place the resulting files in &lt;em&gt;C:\2D\&lt;/em&gt; the command would be as follows:&lt;br /&gt;
&lt;em&gt;msbatch inname:c:\3d\*.dgn outname:c:\2d\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Remember to include the trailing back-slash at the end of the outname. In addition, the file names can't have any spaces and the output files can not be written to the same folder as the input files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Batch Process Job File:&lt;/strong&gt;&lt;br /&gt;
MSBATCH can also be used to kick off a MicroStation V8's &lt;em&gt;Batch Process Job file&lt;/em&gt; by using this syntax:&lt;br /&gt;
&lt;em&gt;msbatch batchprocess [batch_process_job_file_specification]&lt;/em&gt;&lt;br /&gt;
Note, when using MSBATCH to kick off a VBA application, ensure that the command includes &lt;em&gt;MDL Load ustnvba&lt;/em&gt; at the beginning.&lt;br /&gt;
With thanks to &lt;em&gt;Russ Webber&lt;/em&gt; for providing this information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Batch Conversion Job File:&lt;/strong&gt;&lt;br /&gt;
You can run a job saved in a batch conversion job file (BCNV) directly from the system command line by using MSBATCH and the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch batchconvert [batch_conversion_job_specification]&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Watch those settings:&lt;/strong&gt;&lt;br /&gt;
Before bulk processing any files, it's important to have fine-tuned your option settings and to have a good idea of what your end results are going to be. It's strongly suggested to test one or two files first and tweak the necessary settings until you have satisfactory results. After all, it would be a shame to process hundreds of files only to realize after the fact that your settings were incorrect.&lt;br /&gt;
&lt;br /&gt;
In addition, you many experience a limit to the number of files that can be included in one batch when using MSBATCH. This limit is related to the amount of system resources available and will vary from system to system. Typically, the more physical memory and swap space available, the more files you can include in a single batch process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Need more info?&lt;/strong&gt;&lt;br /&gt;
&lt;a href="ftp://docs.bentley.com/pub/dl/pdfs/en/file_portability.exe"&gt;File Portability/Translation Guide&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://selectservices.bentley.com/en-US/Support/Support+Tools/TechNotes+and+FAQs/MicroStation+J/8187+-+Using+MSBATCH.htm"&gt;Using MSBATCH&lt;/a&gt;&lt;br /&gt;
And of course the delivered documentation. 
&lt;/p&gt;
&lt;p&gt;
AskInga Article #52 
&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: &lt;tags&gt;&lt;/tags&gt;&lt;/div&gt;
</description></item><item><title>Using MSBATCH for command line processing </title><link>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing/revision/5</link><pubDate>Wed, 11 Jun 2008 12:38:58 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c629e2aa-a699-4330-848d-04e6f39b837b</guid><dc:creator>jdeg</dc:creator><comments>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing#comments</comments><description>Revision 5 posted to [Archived] AskInga Wiki by jdeg on 6/11/2008 12:38:58 PM&lt;br /&gt;
&lt;p&gt;
&lt;a href="/UserGroups/GroupDetail.aspx?groupID=111"&gt;&lt;img src="/askIngaPics/askingalogo.gif" border="0" alt="AskInga logo" title="AskInga" width="230" height="76" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Batch process can be run directly from the system command line by using a external process called &lt;em&gt;MSBATCH&lt;/em&gt;. With this utility you can do several things depending upon the version of MicroStation you're using. For example, with V8 you can convert raster files, merge files, save to DWG, and replace cells.&lt;br /&gt;
&lt;em&gt;2001-02-14&lt;/em&gt; Original posting date.&lt;br /&gt;
&lt;em&gt;2003-11-19&lt;/em&gt; Updated for clarity.&lt;br /&gt;
&lt;em&gt;2007-01-09&lt;/em&gt; Reviewed and updated as necessary.&lt;br /&gt;
&lt;em&gt;2007-05-14&lt;/em&gt; Updated V8 content. 
&lt;/p&gt;
&lt;div style="border-bottom: 1pt solid #cccccc"&gt;
&lt;/div&gt;
&lt;p&gt;
MSBATCH is a delivered utility that runs from the command line and translates multiple files from one format to another. Although most commonly used with V7 MicroStation for converting AutoCAD drawing files into the V7 design file format, MSBATCH can also be used to: 
&lt;/p&gt;
&lt;table border="0" cellspacing="0" cellpadding="0" width="561" class="MsoNormalTable" style="margin-left: 4.65pt; width: 421pt; border-collapse: collapse"&gt;
	&lt;tbody&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border: 1pt solid windowtext; padding: 0cm 5.4pt; width: 194pt; height: 20.1pt"&gt;
			&lt;p class="MsoNormal" align="center"&gt;
			&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Action&lt;/span&gt;&lt;/strong&gt; 
			&lt;/p&gt;
			&lt;/td&gt;
			&lt;td width="193" style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; width: 145pt; height: 20.1pt"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Application&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; width: 82pt; height: 20.1pt"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Version&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: DWG, DXF, and DXB&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;dwgin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;dwgout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: CGM&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;cgmin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;cgmout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: IGES&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;igesin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;igesout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export:&lt;span&gt; &lt;/span&gt;GRD&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;grdin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;grdout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import:&lt;span&gt; &lt;/span&gt;&lt;span class="SpellE"&gt;VersaCAD&lt;/span&gt; 386&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;vcadin&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Convert 2D to 3D and 3D to 2D&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;cnvdgn&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Convert Raster Images to other formats&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 145pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;&lt;span class="SpellE"&gt;rastconv&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Merge Source file(s) into a destination file&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;merge&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Replace Cells &lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;repcell&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 194pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Execute a Batch Process Job File (BPRC)&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Batch Process&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 194pt; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Exceute&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt; a Batch Conversion Job (BCNV)&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 145pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Batch Convert&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 82pt; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;strong&gt;Watch that syntax!&lt;/strong&gt;&lt;br /&gt;
MSBATCH is run from the directory that contains the executable and typically follows this syntax: &lt;em&gt;MSBATCH [application] option1 option2 option3&amp;hellip;&lt;/em&gt;. Although the syntax appears to be quite simple, the following should be kept in mind: 
&lt;/p&gt;
&lt;li&gt;Run MSBATCH from the directory that contains the executable. In MicroStation J that would be: &lt;em&gt;..\Bentley\Program\Microstation\&lt;/em&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;MSBATCH will use the last settings found in the DWG/DXF Import/Export dialog box &amp;ndash; but that these can be overridden by command line options.&lt;/li&gt;
&lt;li&gt;Wildcards (*) and (?) can be used for specifying file names.&lt;/li&gt;
&lt;li&gt;All output directory parameters (outdwg, outdgn, o, outgrd and outname) must end with a backslash. For example, &lt;em&gt;outdwg:c:\temp\*.dwg&lt;/em&gt; will output all files to single dwg files, but &lt;em&gt;outdwg:c:\temp&lt;/em&gt; will output all files into one file called &lt;em&gt;temp.dgn&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Utilize MicroStations configuration variables or use full paths when specifying the file names.&lt;/li&gt;
&lt;li&gt;The entire MSBATCH statement must be keyed in on one line.&lt;/li&gt;
&lt;li&gt;Depending upon your operation system, an MSBatch statement which exceeds the DOS 128 character limit it may not run as expected. Should this occur, create an ASCII text file with extension of &lt;em&gt;.bat&lt;/em&gt; and type the entire MSBATCH statement on one line. To execute this MSBATCH statement, simply key in the batch file name from the command prompt.&lt;/li&gt;
&lt;br /&gt;
&lt;strong&gt;The Command Line Options:&lt;/strong&gt;&lt;br /&gt;
With some of the translators it's possible to obtain a list of the available command line options by keying in &lt;em&gt;MSBATCH [application]&lt;/em&gt; from the system command prompt. This is true for: dwgin, dwgout, cgmin, cgmout, igesin, igesout, cnvdgn and repcell - although this isn't the case for all versions. &lt;br /&gt;
&lt;br /&gt;
Entering this keyin will display a table showing the valid parameters as well as an example of the syntax to be used.&lt;br /&gt;
&lt;br /&gt;
For instance, by keying in &lt;em&gt;MSBATCH DWGIN&lt;/em&gt;, you will be presented with the following information in a DOS window: 
&lt;table border="0" cellpadding="6" width="100%"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td align="top" valign="top"&gt;&lt;img src="/askIngaPics/52Pic1.jpg" border="0" align="left" /&gt; &lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;strong&gt;GRD Import:&lt;/strong&gt;&lt;br /&gt;
In MicroStation V7 the &lt;em&gt;grdin&lt;/em&gt; translator doesn't show the available options. In the event that you'd like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;
&lt;em&gt;msbatch grdin [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for import, overrides MS_GRDIN&lt;br /&gt;
&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_DGNOUT&lt;br /&gt;
&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDINSET&lt;br /&gt;
&lt;br /&gt;
For example, to convert GRD Files in \temp to DGN files in \dgn, the command would read:&lt;br /&gt;
&lt;em&gt;msbatch grdin infile:c:\temp\*.grd outgrd:c:\dgn\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;GRD Export:&lt;/strong&gt;&lt;br /&gt;
In MicroStation V7 the &lt;em&gt;grdout&lt;/em&gt; translator doesn't show the available options. In the event that you'd like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;
&lt;em&gt;msbatch grdout [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for export, overrides MS_DEF&lt;br /&gt;
&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_GRDOUT&lt;br /&gt;
&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDOUTSET&lt;br /&gt;
&lt;br /&gt;
For example, to convert DGN Files in \dgn to GRD files in \temp, the command would read:&lt;br /&gt;
&lt;em&gt;msbatch grdout infile:c:\dgn\*.dgn outgrd:c:\temp\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Raster Image Conversion:&lt;/strong&gt;&lt;br /&gt;
Although you can use MSBATCH to handle multiple images, you may obtain better results and more control over output settings by using the Batch Conversion option delivered with the Raster Manager. Please refer to the delivered MicroStation HELP file for the specific syntax and available options.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Merging Design Files Together:&lt;/strong&gt;&lt;br /&gt;
Let's say you need to merge a dozen or so files into one single destination file. You could attach them as reference files and then use the Fence Copy tool..but that method has it's problems. First of all it can be extremely inefficient and of course, there's always the risk of duplicating your active design file elements. With that in mind, let's take a look at using MSBATCH to merge files together.&lt;br /&gt;
&lt;br /&gt;
Say, we want to merge the entire contents of &lt;em&gt;source1.dgn&lt;/em&gt;, &lt;em&gt;source2.dgn&lt;/em&gt; and &lt;em&gt;source3.dgn&lt;/em&gt; into &lt;em&gt;dest.dgn&lt;/em&gt;.&lt;br /&gt;
You can use the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch merge [destination_filename] [source_filename_1]... [source_filename_n]&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
For example, in both MicroStation V7 and V8, you'd use the following:&lt;br /&gt;
&lt;em&gt;msbatch merge dest.dgn source1.dgn source2.dgn source3.dgn&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Of course &amp;ndash; the same results can be obtained by executing &lt;em&gt;Merge&lt;/em&gt; from the &lt;em&gt;MicroStation Manger &amp;gt; File&lt;/em&gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Replacing cells:&lt;/strong&gt;&lt;br /&gt;
To replace cells (excluding orphan cells) from the system command line, enter&lt;br /&gt;
&lt;em&gt;msbatch repcell.ma [DGN_file] [cell_library] [y | n] [cell_to_replace] [replacement_cell]&lt;/em&gt; where:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;DGN_file&lt;/em&gt; is the DGN file on which to operate,&lt;br /&gt;
&lt;em&gt;cell_library&lt;/em&gt; is the cell library that contains the replacement cell,&lt;br /&gt;
&lt;em&gt;y&lt;/em&gt; keeps attributes,&lt;br /&gt;
&lt;em&gt;n&lt;/em&gt; does not keep attributes,&lt;br /&gt;
&lt;em&gt;cell_to_replace&lt;/em&gt; is the name of the cell in &lt;em&gt;DGN_file&lt;/em&gt; to replace, &lt;br /&gt;
&lt;em&gt;replacement_cell&lt;/em&gt; is the name of the replacement cell in &lt;em&gt;cell_library&lt;/em&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Convert 3D to 2D&lt;/strong&gt;&lt;br /&gt;
MSBATCH can be used to quickly convert 3D files to 2D or vice versa. To do so, use the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch cnvdgn inname: outname:&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
For example, to convert all files in &lt;em&gt;C:\3D\&lt;/em&gt; and place the resulting files in &lt;em&gt;C:\2D\&lt;/em&gt; the command would be as follows:&lt;br /&gt;
&lt;em&gt;msbatch inname:c:\3d\*.dgn outname:c:\2d\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Remember to include the trailing back-slash at the end of the outname. In addition, the file names can't have any spaces and the output files can not be written to the same folder as the input files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Batch Process Job File:&lt;/strong&gt;&lt;br /&gt;
MSBATCH can also be used to kick off a MicroStation V8's &lt;em&gt;Batch Process Job file&lt;/em&gt; by using this syntax:&lt;br /&gt;
&lt;em&gt;msbatch batchprocess [batch_process_job_file_specification]&lt;/em&gt;&lt;br /&gt;
Note, when using MSBATCH to kick off a VBA application, ensure that the command includes &lt;em&gt;MDL Load ustnvba&lt;/em&gt; at the beginning.&lt;br /&gt;
With thanks to &lt;em&gt;Russ Webber&lt;/em&gt; for providing this information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Batch Conversion Job File:&lt;/strong&gt;&lt;br /&gt;
You can run a job saved in a batch conversion job file (BCNV) directly from the system command line by using MSBATCH and the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch batchconvert [batch_conversion_job_specification]&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Watch those settings:&lt;/strong&gt;&lt;br /&gt;
Before bulk processing any files, it's important to have fine-tuned your option settings and to have a good idea of what your end results are going to be. It's strongly suggested to test one or two files first and tweak the necessary settings until you have satisfactory results. After all, it would be a shame to process hundreds of files only to realize after the fact that your settings were incorrect.&lt;br /&gt;
&lt;br /&gt;
In addition, you many experience a limit to the number of files that can be included in one batch when using MSBATCH. This limit is related to the amount of system resources available and will vary from system to system. Typically, the more physical memory and swap space available, the more files you can include in a single batch process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Need more info?&lt;/strong&gt;&lt;br /&gt;
&lt;a href="ftp://docs.bentley.com/pub/dl/pdfs/en/file_portability.exe"&gt;File Portability/Translation Guide&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://selectservices.bentley.com/en-US/Support/Support+Tools/TechNotes+and+FAQs/MicroStation+J/8187+-+Using+MSBATCH.htm"&gt;Using MSBATCH&lt;/a&gt;&lt;br /&gt;
And of course the delivered documentation. 
&lt;/p&gt;
&lt;p&gt;
AskInga Article #52 
&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: &lt;tags&gt;&lt;/tags&gt;&lt;/div&gt;
</description></item><item><title>Using MSBATCH for command line processing </title><link>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing/revision/4</link><pubDate>Wed, 11 Jun 2008 12:37:52 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c629e2aa-a699-4330-848d-04e6f39b837b</guid><dc:creator>Inga Morozoff</dc:creator><comments>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing#comments</comments><description>Revision 4 posted to [Archived] AskInga Wiki by Inga Morozoff on 6/11/2008 12:37:52 PM&lt;br /&gt;
&lt;p&gt;
&lt;a href="/UserGroups/GroupDetail.aspx?groupID=111"&gt;&lt;img src="/askIngaPics/askingalogo.gif" border="0" alt="AskInga logo" title="AskInga" width="230" height="76" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Batch process can be run directly from the system command line by using a external process called &lt;em&gt;MSBATCH&lt;/em&gt;. With this utility you can do several things depending upon the version of MicroStation you're using. For example, with V8 you can convert raster files, merge files, save to DWG, and replace cells.&lt;br /&gt;
&lt;em&gt;2001-02-14&lt;/em&gt; Original posting date.&lt;br /&gt;
&lt;em&gt;2003-11-19&lt;/em&gt; Updated for clarity.&lt;br /&gt;
&lt;em&gt;2007-01-09&lt;/em&gt; Reviewed and updated as necessary.&lt;br /&gt;
&lt;em&gt;2007-05-14&lt;/em&gt; Updated V8 content. 
&lt;/p&gt;
&lt;div style="border-bottom: #cccccc 1pt solid"&gt;
&lt;/div&gt;
&lt;p&gt;
MSBATCH is a delivered utility that runs from the command line and translates multiple files from one format to another. Although most commonly used with V7 MicroStation for converting AutoCAD drawing files into the V7 design file format, MSBATCH can also be used to: 
&lt;/p&gt;
&lt;table border="0" cellspacing="0" cellpadding="0" width="561" class="MsoNormalTable" style="margin-left: 4.65pt; width: 421pt; border-collapse: collapse"&gt;
	&lt;tbody&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0cm; width: 194pt; padding-top: 0cm; height: 20.1pt; border: windowtext 1pt solid"&gt;
			&lt;p class="MsoNormal" align="center"&gt;
			&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Action&lt;/span&gt;&lt;/strong&gt; 
			&lt;/p&gt;
			&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Application&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Version&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: DWG, DXF, and DXB&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;dwgin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;dwgout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: CGM&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;cgmin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;cgmout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: IGES&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;igesin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;igesout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export:&lt;span&gt; &lt;/span&gt;GRD&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;grdin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;grdout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import:&lt;span&gt; &lt;/span&gt;&lt;span class="SpellE"&gt;VersaCAD&lt;/span&gt; 386&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;vcadin&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Convert 2D to 3D and 3D to 2D&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;cnvdgn&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Convert Raster Images to other formats&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;&lt;span class="SpellE"&gt;rastconv&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Merge Source file(s) into a destination file&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;merge&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Replace Cells &lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;repcell&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Execute a Batch Process Job File (BPRC)&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Batch Process&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Exceute&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt; a Batch Conversion Job (BCNV)&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Batch Convert&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;strong&gt;Watch that syntax!&lt;/strong&gt;&lt;br /&gt;
MSBATCH is run from the directory that contains the executable and typically follows this syntax: &lt;em&gt;MSBATCH [application] option1 option2 option3&amp;hellip;&lt;/em&gt;. Although the syntax appears to be quite simple, the following should be kept in mind: 
&lt;/p&gt;
&lt;li&gt;Run MSBATCH from the directory that contains the executable. In MicroStation J that would be: &lt;em&gt;..\Bentley\Program\Microstation\&lt;/em&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;MSBATCH will use the last settings found in the DWG/DXF Import/Export dialog box &amp;ndash; but that these can be overridden by command line options.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Wildcards (*) and (?) can be used for specifying file names.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;All output directory parameters (outdwg, outdgn, o, outgrd and outname) must end with a backslash. For example, &lt;em&gt;outdwg:c:\temp\*.dwg&lt;/em&gt; will output all files to single dwg files, but &lt;em&gt;outdwg:c:\temp&lt;/em&gt; will output all files into one file called &lt;em&gt;temp.dgn&lt;/em&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Utilize MicroStations configuration variables or use full paths when specifying the file names.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;The entire MSBATCH statement must be keyed in on one line.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Depending upon your operation system, an MSBatch statement which exceeds the DOS 128 character limit it may not run as expected. Should this occur, create an ASCII text file with extension of &lt;em&gt;.bat&lt;/em&gt; and type the entire MSBATCH statement on one line. To execute this MSBATCH statement, simply key in the batch file name from the command prompt.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;The Command Line Options:&lt;/strong&gt;&lt;br /&gt;
With some of the translators it's possible to obtain a list of the available command line options by keying in &lt;em&gt;MSBATCH [application]&lt;/em&gt; from the system command prompt. This is true for: dwgin, dwgout, cgmin, cgmout, igesin, igesout, cnvdgn and repcell - although this isn't the case for all versions. &lt;br /&gt;
&lt;br /&gt;
Entering this keyin will display a table showing the valid parameters as well as an example of the syntax to be used.&lt;br /&gt;
&lt;br /&gt;
For instance, by keying in &lt;em&gt;MSBATCH DWGIN&lt;/em&gt;, you will be presented with the following information in a DOS window: 
&lt;table border="0" cellpadding="6" width="100%"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td align="top" valign="top"&gt;&lt;img src="/askIngaPics/52Pic1.jpg" border="0" align="left" /&gt; &lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;strong&gt;GRD Import:&lt;/strong&gt;&lt;br /&gt;
In MicroStation V7 the &lt;em&gt;grdin&lt;/em&gt; translator doesn't show the available options. In the event that you'd like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;
&lt;em&gt;msbatch grdin [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for import, overrides MS_GRDIN&lt;br /&gt;
&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_DGNOUT&lt;br /&gt;
&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDINSET&lt;br /&gt;
&lt;br /&gt;
For example, to convert GRD Files in \temp to DGN files in \dgn, the command would read:&lt;br /&gt;
&lt;em&gt;msbatch grdin infile:c:\temp\*.grd outgrd:c:\dgn\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;GRD Export:&lt;/strong&gt;&lt;br /&gt;
In MicroStation V7 the &lt;em&gt;grdout&lt;/em&gt; translator doesn't show the available options. In the event that you'd like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;
&lt;em&gt;msbatch grdout [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for export, overrides MS_DEF&lt;br /&gt;
&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_GRDOUT&lt;br /&gt;
&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDOUTSET&lt;br /&gt;
&lt;br /&gt;
For example, to convert DGN Files in \dgn to GRD files in \temp, the command would read:&lt;br /&gt;
&lt;em&gt;msbatch grdout infile:c:\dgn\*.dgn outgrd:c:\temp\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Raster Image Conversion:&lt;/strong&gt;&lt;br /&gt;
Although you can use MSBATCH to handle multiple images, you may obtain better results and more control over output settings by using the Batch Conversion option delivered with the Raster Manager. Please refer to the delivered MicroStation HELP file for the specific syntax and available options.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Merging Design Files Together:&lt;/strong&gt;&lt;br /&gt;
Let's say you need to merge a dozen or so files into one single destination file. You could attach them as reference files and then use the Fence Copy tool..but that method has it's problems. First of all it can be extremely inefficient and of course, there's always the risk of duplicating your active design file elements. With that in mind, let's take a look at using MSBATCH to merge files together.&lt;br /&gt;
&lt;br /&gt;
Say, we want to merge the entire contents of &lt;em&gt;source1.dgn&lt;/em&gt;, &lt;em&gt;source2.dgn&lt;/em&gt; and &lt;em&gt;source3.dgn&lt;/em&gt; into &lt;em&gt;dest.dgn&lt;/em&gt;.&lt;br /&gt;
You can use the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch merge [destination_filename] [source_filename_1]... [source_filename_n]&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
For example, in both MicroStation V7 and V8, you'd use the following:&lt;br /&gt;
&lt;em&gt;msbatch merge dest.dgn source1.dgn source2.dgn source3.dgn&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Of course &amp;ndash; the same results can be obtained by executing &lt;em&gt;Merge&lt;/em&gt; from the &lt;em&gt;MicroStation Manger &amp;gt; File&lt;/em&gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Replacing cells:&lt;/strong&gt;&lt;br /&gt;
To replace cells (excluding orphan cells) from the system command line, enter&lt;br /&gt;
&lt;em&gt;msbatch repcell.ma [DGN_file] [cell_library] [y | n] [cell_to_replace] [replacement_cell]&lt;/em&gt; where:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;DGN_file&lt;/em&gt; is the DGN file on which to operate,&lt;br /&gt;
&lt;em&gt;cell_library&lt;/em&gt; is the cell library that contains the replacement cell,&lt;br /&gt;
&lt;em&gt;y&lt;/em&gt; keeps attributes,&lt;br /&gt;
&lt;em&gt;n&lt;/em&gt; does not keep attributes,&lt;br /&gt;
&lt;em&gt;cell_to_replace&lt;/em&gt; is the name of the cell in &lt;em&gt;DGN_file&lt;/em&gt; to replace, &lt;br /&gt;
&lt;em&gt;replacement_cell&lt;/em&gt; is the name of the replacement cell in &lt;em&gt;cell_library&lt;/em&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Convert 3D to 2D&lt;/strong&gt;&lt;br /&gt;
MSBATCH can be used to quickly convert 3D files to 2D or vice versa. To do so, use the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch cnvdgn inname: outname:&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
For example, to convert all files in &lt;em&gt;C:\3D\&lt;/em&gt; and place the resulting files in &lt;em&gt;C:\2D\&lt;/em&gt; the command would be as follows:&lt;br /&gt;
&lt;em&gt;msbatch inname:c:\3d\*.dgn outname:c:\2d\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Remember to include the trailing back-slash at the end of the outname. In addition, the file names can't have any spaces and the output files can not be written to the same folder as the input files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Batch Process Job File:&lt;/strong&gt;&lt;br /&gt;
MSBATCH can also be used to kick off a MicroStation V8's &lt;em&gt;Batch Process Job file&lt;/em&gt; by using this syntax:&lt;br /&gt;
&lt;em&gt;msbatch batchprocess [batch_process_job_file_specification]&lt;/em&gt;&lt;br /&gt;
Note, when using MSBATCH to kick off a VBA application, ensure that the command includes &lt;em&gt;MDL Load ustnvba&lt;/em&gt; at the beginning.&lt;br /&gt;
With thanks to &lt;em&gt;Russ Webber&lt;/em&gt; for providing this information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Batch Conversion Job File:&lt;/strong&gt;&lt;br /&gt;
You can run a job saved in a batch conversion job file (BCNV) directly from the system command line by using MSBATCH and the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch batchconvert [batch_conversion_job_specification]&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Watch those settings:&lt;/strong&gt;&lt;br /&gt;
Before bulk processing any files, it's important to have fine-tuned your option settings and to have a good idea of what your end results are going to be. It's strongly suggested to test one or two files first and tweak the necessary settings until you have satisfactory results. After all, it would be a shame to process hundreds of files only to realize after the fact that your settings were incorrect.&lt;br /&gt;
&lt;br /&gt;
In addition, you many experience a limit to the number of files that can be included in one batch when using MSBATCH. This limit is related to the amount of system resources available and will vary from system to system. Typically, the more physical memory and swap space available, the more files you can include in a single batch process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Need more info?&lt;/strong&gt;&lt;br /&gt;
&lt;a href="ftp://docs.bentley.com/pub/dl/pdfs/en/file_portability.exe"&gt;File Portability/Translation Guide&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://selectservices.bentley.com/en-US/Support/Support+Tools/TechNotes+and+FAQs/MicroStation+J/8187+-+Using+MSBATCH.htm"&gt;Using MSBATCH&lt;/a&gt;&lt;br /&gt;
And of course the delivered documentation. 
&lt;/p&gt;
&lt;p&gt;
AskInga Article #52 
&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: &lt;tags&gt;&lt;/tags&gt;&lt;/div&gt;
</description></item><item><title>Using MSBATCH for command line processing </title><link>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing/revision/3</link><pubDate>Tue, 10 Jun 2008 16:57:42 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c629e2aa-a699-4330-848d-04e6f39b837b</guid><dc:creator>Hannah Blye</dc:creator><comments>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing#comments</comments><description>Revision 3 posted to [Archived] AskInga Wiki by Hannah Blye on 6/10/2008 4:57:42 PM&lt;br /&gt;
&lt;p&gt;
&lt;a href="/UserGroups/GroupDetail.aspx?groupID=111"&gt;&lt;img src="/askIngaPics/askingalogo.gif" border="0" alt="AskInga logo" title="AskInga" width="230" height="76" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Batch process can be run directly from the system command line by using a external process called &lt;em&gt;MSBATCH&lt;/em&gt;. With this utility you can do several things depending upon the version of MicroStation you're using. For example, with V8 you can convert raster files, merge files, save to DWG, and replace cells.&lt;br /&gt;
&lt;em&gt;2001-02-14&lt;/em&gt; Original posting date.&lt;br /&gt;
&lt;em&gt;2003-11-19&lt;/em&gt; Updated for clarity.&lt;br /&gt;
&lt;em&gt;2007-01-09&lt;/em&gt; Reviewed and updated as necessary.&lt;br /&gt;
&lt;em&gt;2007-05-14&lt;/em&gt; Updated V8 content. 
&lt;/p&gt;
&lt;div style="border-bottom: #cccccc 1pt solid"&gt;
&lt;/div&gt;
&lt;p&gt;
MSBATCH is a delivered utility that runs from the command line and translates multiple files from one format to another. Although most commonly used with V7 MicroStation for converting AutoCAD drawing files into the V7 design file format, MSBATCH can also be used to: 
&lt;/p&gt;
&lt;table border="0" cellspacing="0" cellpadding="0" width="561" class="MsoNormalTable" style="margin-left: 4.65pt; width: 421pt; border-collapse: collapse"&gt;
	&lt;tbody&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0cm; width: 194pt; padding-top: 0cm; height: 20.1pt; border: windowtext 1pt solid"&gt;
			&lt;p class="MsoNormal" align="center"&gt;
			&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Action&lt;/span&gt;&lt;/strong&gt; 
			&lt;/p&gt;
			&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Application&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Version&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: DWG, DXF, and DXB&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;dwgin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;dwgout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: CGM&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;cgmin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;cgmout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: IGES&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;igesin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;igesout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export:&lt;span&gt; &lt;/span&gt;GRD&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;grdin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;grdout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import:&lt;span&gt; &lt;/span&gt;&lt;span class="SpellE"&gt;VersaCAD&lt;/span&gt; 386&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;vcadin&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Convert 2D to 3D and 3D to 2D&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;cnvdgn&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Convert Raster Images to other formats&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;&lt;span class="SpellE"&gt;rastconv&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Merge Source file(s) into a destination file&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;merge&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Replace Cells &lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;repcell&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Execute a Batch Process Job File (BPRC)&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Batch Process&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Exceute&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt; a Batch Conversion Job (BCNV)&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Batch Convert&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;strong&gt;Watch that syntax!&lt;/strong&gt;&lt;br /&gt;
MSBATCH is run from the directory that contains the executable and typically follows this syntax: &lt;em&gt;MSBATCH [application] option1 option2 option3&amp;hellip;&lt;/em&gt;. Although the syntax appears to be quite simple, the following should be kept in mind: 
&lt;/p&gt;
&lt;li&gt;Run MSBATCH from the directory that contains the executable. In MicroStation J that would be: &lt;em&gt;..\Bentley\Program\Microstation\&lt;/em&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;MSBATCH will use the last settings found in the DWG/DXF Import/Export dialog box &amp;ndash; but that these can be overridden by command line options.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Wildcards (*) and (?) can be used for specifying file names.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;All output directory parameters (outdwg, outdgn, o, outgrd and outname) must end with a backslash. For example, &lt;em&gt;outdwg:c:\temp\*.dwg&lt;/em&gt; will output all files to single dwg files, but &lt;em&gt;outdwg:c:\temp&lt;/em&gt; will output all files into one file called &lt;em&gt;temp.dgn&lt;/em&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Utilize MicroStations configuration variables or use full paths when specifying the file names.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;The entire MSBATCH statement must be keyed in on one line.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Depending upon your operation system, an MSBatch statement which exceeds the DOS 128 character limit it may not run as expected. Should this occur, create an ASCII text file with extension of &lt;em&gt;.bat&lt;/em&gt; and type the entire MSBATCH statement on one line. To execute this MSBATCH statement, simply key in the batch file name from the command prompt.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;The Command Line Options:&lt;/strong&gt;&lt;br /&gt;
With some of the translators it's possible to obtain a list of the available command line options by keying in &lt;em&gt;MSBATCH [application]&lt;/em&gt; from the system command prompt. This is true for: dwgin, dwgout, cgmin, cgmout, igesin, igesout, cnvdgn and repcell - although this isn't the case for all versions. &lt;br /&gt;
&lt;br /&gt;
Entering this keyin will display a table showing the valid parameters as well as an example of the syntax to be used.&lt;br /&gt;
&lt;br /&gt;
For instance, by keying in &lt;em&gt;MSBATCH DWGIN&lt;/em&gt;, you will be presented with the following information in a DOS window: 
&lt;table border="0" cellpadding="6" width="100%"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td align="top" valign="top"&gt;&lt;img src="/askIngaPics/52Pic1.jpg" border="0" align="left" /&gt; &lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;strong&gt;GRD Import:&lt;/strong&gt;&lt;br /&gt;
In MicroStation V7 the &lt;em&gt;grdin&lt;/em&gt; translator doesn't show the available options. In the event that you'd like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;
&lt;em&gt;msbatch grdin [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for import, overrides MS_GRDIN&lt;br /&gt;
&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_DGNOUT&lt;br /&gt;
&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDINSET&lt;br /&gt;
&lt;br /&gt;
For example, to convert GRD Files in \temp to DGN files in \dgn, the command would read:&lt;br /&gt;
&lt;em&gt;msbatch grdin infile:c:\temp\*.grd outgrd:c:\dgn\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;GRD Export:&lt;/strong&gt;&lt;br /&gt;
In MicroStation V7 the &lt;em&gt;grdout&lt;/em&gt; translator doesn't show the available options. In the event that you'd like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;
&lt;em&gt;msbatch grdout [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for export, overrides MS_DEF&lt;br /&gt;
&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_GRDOUT&lt;br /&gt;
&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDOUTSET&lt;br /&gt;
&lt;br /&gt;
For example, to convert DGN Files in \dgn to GRD files in \temp, the command would read:&lt;br /&gt;
&lt;em&gt;msbatch grdout infile:c:\dgn\*.dgn outgrd:c:\temp\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Raster Image Conversion:&lt;/strong&gt;&lt;br /&gt;
Although you can use MSBATCH to handle multiple images, you may obtain better results and more control over output settings by using the Batch Conversion option delivered with the Raster Manager. Please refer to the delivered MicroStation HELP file for the specific syntax and available options.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Merging Design Files Together:&lt;/strong&gt;&lt;br /&gt;
Let's say you need to merge a dozen or so files into one single destination file. You could attach them as reference files and then use the Fence Copy tool..but that method has it's problems. First of all it can be extremely inefficient and of course, there's always the risk of duplicating your active design file elements. With that in mind, let's take a look at using MSBATCH to merge files together.&lt;br /&gt;
&lt;br /&gt;
Say, we want to merge the entire contents of &lt;em&gt;source1.dgn&lt;/em&gt;, &lt;em&gt;source2.dgn&lt;/em&gt; and &lt;em&gt;source3.dgn&lt;/em&gt; into &lt;em&gt;dest.dgn&lt;/em&gt;.&lt;br /&gt;
You can use the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch merge [destination_filename] [source_filename_1]... [source_filename_n]&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
For example, in both MicroStation V7 and V8, you'd use the following:&lt;br /&gt;
&lt;em&gt;msbatch merge dest.dgn source1.dgn source2.dgn source3.dgn&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Of course &amp;ndash; the same results can be obtained by executing &lt;em&gt;Merge&lt;/em&gt; from the &lt;em&gt;MicroStation Manger &amp;gt; File&lt;/em&gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Replacing cells:&lt;/strong&gt;&lt;br /&gt;
To replace cells (excluding orphan cells) from the system command line, enter&lt;br /&gt;
&lt;em&gt;msbatch repcell.ma [DGN_file] [cell_library] [y | n] [cell_to_replace] [replacement_cell]&lt;/em&gt; where:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;DGN_file&lt;/em&gt; is the DGN file on which to operate,&lt;br /&gt;
&lt;em&gt;cell_library&lt;/em&gt; is the cell library that contains the replacement cell,&lt;br /&gt;
&lt;em&gt;y&lt;/em&gt; keeps attributes,&lt;br /&gt;
&lt;em&gt;n&lt;/em&gt; does not keep attributes,&lt;br /&gt;
&lt;em&gt;cell_to_replace&lt;/em&gt; is the name of the cell in &lt;em&gt;DGN_file&lt;/em&gt; to replace, &lt;br /&gt;
&lt;em&gt;replacement_cell&lt;/em&gt; is the name of the replacement cell in &lt;em&gt;cell_library&lt;/em&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Convert 3D to 2D&lt;/strong&gt;&lt;br /&gt;
MSBATCH can be used to quickly convert 3D files to 2D or vice versa. To do so, use the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch cnvdgn inname: outname:&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
For example, to convert all files in &lt;em&gt;C:\3D\&lt;/em&gt; and place the resulting files in &lt;em&gt;C:\2D\&lt;/em&gt; the command would be as follows:&lt;br /&gt;
&lt;em&gt;msbatch inname:c:\3d\*.dgn outname:c:\2d\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Remember to include the trailing back-slash at the end of the outname. In addition, the file names can't have any spaces and the output files can not be written to the same folder as the input files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Batch Process Job File:&lt;/strong&gt;&lt;br /&gt;
MSBATCH can also be used to kick off a MicroStation V8's &lt;em&gt;Batch Process Job file&lt;/em&gt; by using this syntax:&lt;br /&gt;
&lt;em&gt;msbatch batchprocess [batch_process_job_file_specification]&lt;/em&gt;&lt;br /&gt;
Note, when using MSBATCH to kick off a VBA application, ensure that the command includes &lt;em&gt;MDL Load ustnvba&lt;/em&gt; at the beginning.&lt;br /&gt;
With thanks to &lt;em&gt;Russ Webber&lt;/em&gt; for providing this information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Batch Conversion Job File:&lt;/strong&gt;&lt;br /&gt;
You can run a job saved in a batch conversion job file (BCNV) directly from the system command line by using MSBATCH and the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch batchconvert [batch_conversion_job_specification]&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Watch those settings:&lt;/strong&gt;&lt;br /&gt;
Before bulk processing any files, it's important to have fine-tuned your option settings and to have a good idea of what your end results are going to be. It's strongly suggested to test one or two files first and tweak the necessary settings until you have satisfactory results. After all, it would be a shame to process hundreds of files only to realize after the fact that your settings were incorrect.&lt;br /&gt;
&lt;br /&gt;
In addition, you many experience a limit to the number of files that can be included in one batch when using MSBATCH. This limit is related to the amount of system resources available and will vary from system to system. Typically, the more physical memory and swap space available, the more files you can include in a single batch process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Need more info?&lt;/strong&gt;&lt;br /&gt;
&lt;a href="ftp://docs.bentley.com/pub/dl/pdfs/en/file_portability.exe"&gt;File Portability/Translation Guide&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://selectservices.bentley.com/en-US/Support/Support+Tools/TechNotes+and+FAQs/MicroStation+J/8187+-+Using+MSBATCH.htm"&gt;Using MSBATCH&lt;/a&gt;&lt;br /&gt;
And of course the delivered documentation. 
&lt;/p&gt;
&lt;p&gt;
AskInga Article #52 
&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: &lt;tags&gt;&lt;/tags&gt;&lt;/div&gt;
</description></item><item><title>Using MSBATCH for command line processing </title><link>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing/revision/2</link><pubDate>Fri, 30 May 2008 15:04:28 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c629e2aa-a699-4330-848d-04e6f39b837b</guid><dc:creator>CTennyson</dc:creator><comments>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing#comments</comments><description>Revision 2 posted to [Archived] AskInga Wiki by CTennyson on 5/30/2008 3:04:28 PM&lt;br /&gt;
&lt;p&gt;
&lt;img src="/askIngaPics/askingalogo.gif" border="0" alt="Ask Inga logo" title="Ask?Inga" width="230" height="76" /&gt; 
&lt;/p&gt;
&lt;p&gt;
Batch process can be run directly from the system command line by using a external process called &lt;em&gt;MSBATCH&lt;/em&gt;. With this utility you can do several things depending upon the version of MicroStation you're using. For example, with V8 you can convert raster files, merge files, save to DWG, and replace cells.&lt;br /&gt;
&lt;em&gt;2001-02-14&lt;/em&gt; Original posting date.&lt;br /&gt;
&lt;em&gt;2003-11-19&lt;/em&gt; Updated for clarity.&lt;br /&gt;
&lt;em&gt;2007-01-09&lt;/em&gt; Reviewed and updated as necessary.&lt;br /&gt;
&lt;em&gt;2007-05-14&lt;/em&gt; Updated V8 content. 
&lt;/p&gt;
&lt;div style="border-bottom: #cccccc 1pt solid"&gt;
&lt;/div&gt;
&lt;p&gt;
MSBATCH is a delivered utility that runs from the command line and translates multiple files from one format to another. Although most commonly used with V7 MicroStation for converting AutoCAD drawing files into the V7 design file format, MSBATCH can also be used to: 
&lt;/p&gt;
&lt;table border="0" cellspacing="0" cellpadding="0" width="561" class="MsoNormalTable" style="margin-left: 4.65pt; width: 421pt; border-collapse: collapse"&gt;
	&lt;tbody&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0cm; width: 194pt; padding-top: 0cm; height: 20.1pt; border: windowtext 1pt solid"&gt;
			&lt;p class="MsoNormal" align="center"&gt;
			&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Action&lt;/span&gt;&lt;/strong&gt; 
			&lt;/p&gt;
			&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Application&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Version&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: DWG, DXF, and DXB&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;dwgin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;dwgout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: CGM&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;cgmin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;cgmout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: IGES&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;igesin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;igesout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export:&lt;span&gt; &lt;/span&gt;GRD&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;grdin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;grdout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import:&lt;span&gt; &lt;/span&gt;&lt;span class="SpellE"&gt;VersaCAD&lt;/span&gt; 386&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;vcadin&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Convert 2D to 3D and 3D to 2D&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;cnvdgn&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Convert Raster Images to other formats&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;&lt;span class="SpellE"&gt;rastconv&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Merge Source file(s) into a destination file&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;merge&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Replace Cells &lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;repcell&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Execute a Batch Process Job File (BPRC)&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Batch Process&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Exceute&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt; a Batch Conversion Job (BCNV)&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Batch Convert&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;strong&gt;Watch that syntax!&lt;/strong&gt;&lt;br /&gt;
MSBATCH is run from the directory that contains the executable and typically follows this syntax: &lt;em&gt;MSBATCH [application] option1 option2 option3&amp;hellip;&lt;/em&gt;. Although the syntax appears to be quite simple, the following should be kept in mind: 
&lt;/p&gt;
&lt;li&gt;Run MSBATCH from the directory that contains the executable. In MicroStation J that would be: &lt;em&gt;..\Bentley\Program\Microstation\&lt;/em&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;MSBATCH will use the last settings found in the DWG/DXF Import/Export dialog box &amp;ndash; but that these can be overridden by command line options.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Wildcards (*) and (?) can be used for specifying file names.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;All output directory parameters (outdwg, outdgn, o, outgrd and outname) must end with a backslash. For example, &lt;em&gt;outdwg:c:\temp\*.dwg&lt;/em&gt; will output all files to single dwg files, but &lt;em&gt;outdwg:c:\temp&lt;/em&gt; will output all files into one file called &lt;em&gt;temp.dgn&lt;/em&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Utilize MicroStations configuration variables or use full paths when specifying the file names.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;The entire MSBATCH statement must be keyed in on one line.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Depending upon your operation system, an MSBatch statement which exceeds the DOS 128 character limit it may not run as expected. Should this occur, create an ASCII text file with extension of &lt;em&gt;.bat&lt;/em&gt; and type the entire MSBATCH statement on one line. To execute this MSBATCH statement, simply key in the batch file name from the command prompt.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;The Command Line Options:&lt;/strong&gt;&lt;br /&gt;
With some of the translators it's possible to obtain a list of the available command line options by keying in &lt;em&gt;MSBATCH [application]&lt;/em&gt; from the system command prompt. This is true for: dwgin, dwgout, cgmin, cgmout, igesin, igesout, cnvdgn and repcell - although this isn't the case for all versions. &lt;br /&gt;
&lt;br /&gt;
Entering this keyin will display a table showing the valid parameters as well as an example of the syntax to be used.&lt;br /&gt;
&lt;br /&gt;
For instance, by keying in &lt;em&gt;MSBATCH DWGIN&lt;/em&gt;, you will be presented with the following information in a DOS window: 
&lt;table border="0" cellpadding="6" width="100%"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td align="top" valign="top"&gt;&lt;img src="/askIngaPics/52Pic1.jpg" border="0" align="left" /&gt; &lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;strong&gt;GRD Import:&lt;/strong&gt;&lt;br /&gt;
In MicroStation V7 the &lt;em&gt;grdin&lt;/em&gt; translator doesn't show the available options. In the event that you'd like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;
&lt;em&gt;msbatch grdin [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for import, overrides MS_GRDIN&lt;br /&gt;
&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_DGNOUT&lt;br /&gt;
&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDINSET&lt;br /&gt;
&lt;br /&gt;
For example, to convert GRD Files in \temp to DGN files in \dgn, the command would read:&lt;br /&gt;
&lt;em&gt;msbatch grdin infile:c:\temp\*.grd outgrd:c:\dgn\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;GRD Export:&lt;/strong&gt;&lt;br /&gt;
In MicroStation V7 the &lt;em&gt;grdout&lt;/em&gt; translator doesn't show the available options. In the event that you'd like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;
&lt;em&gt;msbatch grdout [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for export, overrides MS_DEF&lt;br /&gt;
&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_GRDOUT&lt;br /&gt;
&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDOUTSET&lt;br /&gt;
&lt;br /&gt;
For example, to convert DGN Files in \dgn to GRD files in \temp, the command would read:&lt;br /&gt;
&lt;em&gt;msbatch grdout infile:c:\dgn\*.dgn outgrd:c:\temp\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Raster Image Conversion:&lt;/strong&gt;&lt;br /&gt;
Although you can use MSBATCH to handle multiple images, you may obtain better results and more control over output settings by using the Batch Conversion option delivered with the Raster Manager. Please refer to the delivered MicroStation HELP file for the specific syntax and available options.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Merging Design Files Together:&lt;/strong&gt;&lt;br /&gt;
Let's say you need to merge a dozen or so files into one single destination file. You could attach them as reference files and then use the Fence Copy tool..but that method has it's problems. First of all it can be extremely inefficient and of course, there's always the risk of duplicating your active design file elements. With that in mind, let's take a look at using MSBATCH to merge files together.&lt;br /&gt;
&lt;br /&gt;
Say, we want to merge the entire contents of &lt;em&gt;source1.dgn&lt;/em&gt;, &lt;em&gt;source2.dgn&lt;/em&gt; and &lt;em&gt;source3.dgn&lt;/em&gt; into &lt;em&gt;dest.dgn&lt;/em&gt;.&lt;br /&gt;
You can use the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch merge [destination_filename] [source_filename_1]... [source_filename_n]&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
For example, in both MicroStation V7 and V8, you'd use the following:&lt;br /&gt;
&lt;em&gt;msbatch merge dest.dgn source1.dgn source2.dgn source3.dgn&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Of course &amp;ndash; the same results can be obtained by executing &lt;em&gt;Merge&lt;/em&gt; from the &lt;em&gt;MicroStation Manger &amp;gt; File&lt;/em&gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Replacing cells:&lt;/strong&gt;&lt;br /&gt;
To replace cells (excluding orphan cells) from the system command line, enter&lt;br /&gt;
&lt;em&gt;msbatch repcell.ma [DGN_file] [cell_library] [y | n] [cell_to_replace] [replacement_cell]&lt;/em&gt; where:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;DGN_file&lt;/em&gt; is the DGN file on which to operate,&lt;br /&gt;
&lt;em&gt;cell_library&lt;/em&gt; is the cell library that contains the replacement cell,&lt;br /&gt;
&lt;em&gt;y&lt;/em&gt; keeps attributes,&lt;br /&gt;
&lt;em&gt;n&lt;/em&gt; does not keep attributes,&lt;br /&gt;
&lt;em&gt;cell_to_replace&lt;/em&gt; is the name of the cell in &lt;em&gt;DGN_file&lt;/em&gt; to replace, &lt;br /&gt;
&lt;em&gt;replacement_cell&lt;/em&gt; is the name of the replacement cell in &lt;em&gt;cell_library&lt;/em&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Convert 3D to 2D&lt;/strong&gt;&lt;br /&gt;
MSBATCH can be used to quickly convert 3D files to 2D or vice versa. To do so, use the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch cnvdgn inname: outname:&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
For example, to convert all files in &lt;em&gt;C:\3D\&lt;/em&gt; and place the resulting files in &lt;em&gt;C:\2D\&lt;/em&gt; the command would be as follows:&lt;br /&gt;
&lt;em&gt;msbatch inname:c:\3d\*.dgn outname:c:\2d\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Remember to include the trailing back-slash at the end of the outname. In addition, the file names can't have any spaces and the output files can not be written to the same folder as the input files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Batch Process Job File:&lt;/strong&gt;&lt;br /&gt;
MSBATCH can also be used to kick off a MicroStation V8's &lt;em&gt;Batch Process Job file&lt;/em&gt; by using this syntax:&lt;br /&gt;
&lt;em&gt;msbatch batchprocess [batch_process_job_file_specification]&lt;/em&gt;&lt;br /&gt;
Note, when using MSBATCH to kick off a VBA application, ensure that the command includes &lt;em&gt;MDL Load ustnvba&lt;/em&gt; at the beginning.&lt;br /&gt;
With thanks to &lt;em&gt;Russ Webber&lt;/em&gt; for providing this information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Batch Conversion Job File:&lt;/strong&gt;&lt;br /&gt;
You can run a job saved in a batch conversion job file (BCNV) directly from the system command line by using MSBATCH and the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch batchconvert [batch_conversion_job_specification]&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Watch those settings:&lt;/strong&gt;&lt;br /&gt;
Before bulk processing any files, it's important to have fine-tuned your option settings and to have a good idea of what your end results are going to be. It's strongly suggested to test one or two files first and tweak the necessary settings until you have satisfactory results. After all, it would be a shame to process hundreds of files only to realize after the fact that your settings were incorrect.&lt;br /&gt;
&lt;br /&gt;
In addition, you many experience a limit to the number of files that can be included in one batch when using MSBATCH. This limit is related to the amount of system resources available and will vary from system to system. Typically, the more physical memory and swap space available, the more files you can include in a single batch process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Need more info?&lt;/strong&gt;&lt;br /&gt;
&lt;a href="ftp://docs.bentley.com/pub/dl/pdfs/en/file_portability.exe"&gt;File Portability/Translation Guide&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://selectservices.bentley.com/en-US/Support/Support+Tools/TechNotes+and+FAQs/MicroStation+J/8187+-+Using+MSBATCH.htm"&gt;Using MSBATCH&lt;/a&gt;&lt;br /&gt;
And of course the delivered documentation. 
&lt;/p&gt;
&lt;p&gt;
AskInga Article #52 
&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: &lt;tags&gt;&lt;/tags&gt;&lt;/div&gt;
</description></item><item><title>Using MSBATCH for command line processing </title><link>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing/revision/1</link><pubDate>Thu, 22 May 2008 14:12:39 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c629e2aa-a699-4330-848d-04e6f39b837b</guid><dc:creator>Danielle Schutz</dc:creator><comments>https://communities.bentley.com/products/microstation/w/askinga/1006/using-msbatch-for-command-line-processing#comments</comments><description>Revision 1 posted to [Archived] AskInga Wiki by Danielle Schutz on 5/22/2008 2:12:39 PM&lt;br /&gt;
&lt;p&gt;
&lt;img src="/askIngaPics/askingalogo.gif" border="0" alt="Ask Inga logo" title="Ask?Inga" width="230" height="76" /&gt; 
&lt;/p&gt;
&lt;p&gt;
Batch process can be run directly from the system command line by using a external process called &lt;em&gt;MSBATCH&lt;/em&gt;. With this utility you can do several things depending upon the version of MicroStation you're using. For example, with V8 you can convert raster files, merge files, save to DWG, and replace cells.&lt;br /&gt;
&lt;em&gt;2001-02-14&lt;/em&gt; Original posting date.&lt;br /&gt;
&lt;em&gt;2003-11-19&lt;/em&gt; Updated for clarity.&lt;br /&gt;
&lt;em&gt;2007-01-09&lt;/em&gt; Reviewed and updated as necessary.&lt;br /&gt;
&lt;em&gt;2007-05-14&lt;/em&gt; Updated V8 content.
&lt;/p&gt;
&lt;div style="border-bottom: #cccccc 1pt solid"&gt;
&lt;/div&gt;
&lt;p&gt;
MSBATCH is a delivered utility that runs from the command line and translates multiple files from one format to another. Although most commonly used with V7 MicroStation for converting AutoCAD drawing files into the V7 design file format, MSBATCH can also be used to:
&lt;/p&gt;
&lt;table border="0" cellspacing="0" cellpadding="0" width="561" class="MsoNormalTable" style="margin-left: 4.65pt; width: 421pt; border-collapse: collapse"&gt;
	&lt;tbody&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0cm; width: 194pt; padding-top: 0cm; height: 20.1pt; border: windowtext 1pt solid"&gt;
			&lt;p class="MsoNormal" align="center"&gt;
			&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Action&lt;/span&gt;&lt;/strong&gt;
			&lt;/p&gt;
			&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Application&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; font-family: Verdana"&gt;Version&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: DWG, DXF, and DXB&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;dwgin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;dwgout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: CGM&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;cgmin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;cgmout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export: IGES&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;igesin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;igesout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import / Export:&lt;span&gt; &lt;/span&gt;GRD&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;grdin&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;, &lt;span class="SpellE"&gt;grdout&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Import:&lt;span&gt; &lt;/span&gt;&lt;span class="SpellE"&gt;VersaCAD&lt;/span&gt; 386&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;vcadin&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 Only&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Convert 2D to 3D and 3D to 2D&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;cnvdgn&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Convert Raster Images to other formats&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;&lt;span class="SpellE"&gt;rastconv&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Merge Source file(s) into a destination file&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;merge&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Replace Cells &lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;repcell&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V7 and V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Execute a Batch Process Job File (BPRC)&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Batch Process&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="height: 20.1pt"&gt;
			&lt;td width="259" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: windowtext 1pt solid; width: 194pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span class="SpellE"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Exceute&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt; a Batch Conversion Job (BCNV)&lt;/span&gt;&lt;/td&gt;
			&lt;td width="193" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 145pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;Batch Convert&lt;/span&gt;&lt;/td&gt;
			&lt;td width="109" style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; background: white; padding-bottom: 0cm; border-left: medium none; width: 82pt; padding-top: 0cm; border-bottom: windowtext 1pt solid; height: 20.1pt"&gt;&lt;span style="font-size: 8pt; font-family: Verdana"&gt;V8&lt;/span&gt;&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;strong&gt;Watch that syntax!&lt;/strong&gt;&lt;br /&gt;
MSBATCH is run from the directory that contains the executable and typically follows this syntax: &lt;em&gt;MSBATCH [application] option1 option2 option3&amp;hellip;&lt;/em&gt;. Although the syntax appears to be quite simple, the following should be kept in mind:
&lt;/p&gt;
&lt;li&gt;Run MSBATCH from the directory that contains the executable. In MicroStation J that would be: &lt;em&gt;..\Bentley\Program\Microstation\&lt;/em&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;MSBATCH will use the last settings found in the DWG/DXF Import/Export dialog box &amp;ndash; but that these can be overridden by command line options.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Wildcards (*) and (?) can be used for specifying file names.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;All output directory parameters (outdwg, outdgn, o, outgrd and outname) must end with a backslash. For example, &lt;em&gt;outdwg:c:\temp\*.dwg&lt;/em&gt; will output all files to single dwg files, but &lt;em&gt;outdwg:c:\temp&lt;/em&gt; will output all files into one file called &lt;em&gt;temp.dgn&lt;/em&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Utilize MicroStations configuration variables or use full paths when specifying the file names.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;The entire MSBATCH statement must be keyed in on one line.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Depending upon your operation system, an MSBatch statement which exceeds the DOS 128 character limit it may not run as expected. Should this occur, create an ASCII text file with extension of &lt;em&gt;.bat&lt;/em&gt; and type the entire MSBATCH statement on one line. To execute this MSBATCH statement, simply key in the batch file name from the command prompt.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;The Command Line Options:&lt;/strong&gt;&lt;br /&gt;
With some of the translators it's possible to obtain a list of the available command line options by keying in &lt;em&gt;MSBATCH [application]&lt;/em&gt; from the system command prompt. This is true for: dwgin, dwgout, cgmin, cgmout, igesin, igesout, cnvdgn and repcell - although this isn't the case for all versions. &lt;br /&gt;
&lt;br /&gt;
Entering this keyin will display a table showing the valid parameters as well as an example of the syntax to be used.&lt;br /&gt;
&lt;br /&gt;
For instance, by keying in &lt;em&gt;MSBATCH DWGIN&lt;/em&gt;, you will be presented with the following information in a DOS window: 
&lt;table border="0" cellpadding="6" width="100%"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td align="top" valign="top"&gt;&lt;img src="/askIngaPics/52Pic1.jpg" border="0" align="left" /&gt; &lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;strong&gt;GRD Import:&lt;/strong&gt;&lt;br /&gt;
In MicroStation V7 the &lt;em&gt;grdin&lt;/em&gt; translator doesn't show the available options. In the event that you'd like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;
&lt;em&gt;msbatch grdin [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for import, overrides MS_GRDIN&lt;br /&gt;
&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_DGNOUT&lt;br /&gt;
&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDINSET&lt;br /&gt;
&lt;br /&gt;
For example, to convert GRD Files in \temp to DGN files in \dgn, the command would read:&lt;br /&gt;
&lt;em&gt;msbatch grdin infile:c:\temp\*.grd outgrd:c:\dgn\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;GRD Export:&lt;/strong&gt;&lt;br /&gt;
In MicroStation V7 the &lt;em&gt;grdout&lt;/em&gt; translator doesn't show the available options. In the event that you'd like to use MSBATCH to convert to this format, use following syntax: &lt;br /&gt;
&lt;em&gt;msbatch grdout [option1 option2 option3...]&lt;/em&gt; where: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;infile: [filename]&lt;/em&gt; Specifies files for export, overrides MS_DEF&lt;br /&gt;
&lt;em&gt;outgrd: [filename]&lt;/em&gt; Specifies output file name and directory, overrides MS_GRDOUT&lt;br /&gt;
&lt;em&gt;settingsfile: [filename]&lt;/em&gt; Specifies settings file; overrides MS_GRDOUTSET&lt;br /&gt;
&lt;br /&gt;
For example, to convert DGN Files in \dgn to GRD files in \temp, the command would read:&lt;br /&gt;
&lt;em&gt;msbatch grdout infile:c:\dgn\*.dgn outgrd:c:\temp\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Raster Image Conversion:&lt;/strong&gt;&lt;br /&gt;
Although you can use MSBATCH to handle multiple images, you may obtain better results and more control over output settings by using the Batch Conversion option delivered with the Raster Manager. Please refer to the delivered MicroStation HELP file for the specific syntax and available options.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Merging Design Files Together:&lt;/strong&gt;&lt;br /&gt;
Let's say you need to merge a dozen or so files into one single destination file. You could attach them as reference files and then use the Fence Copy tool..but that method has it's problems. First of all it can be extremely inefficient and of course, there's always the risk of duplicating your active design file elements. With that in mind, let's take a look at using MSBATCH to merge files together.&lt;br /&gt;
&lt;br /&gt;
Say, we want to merge the entire contents of &lt;em&gt;source1.dgn&lt;/em&gt;, &lt;em&gt;source2.dgn&lt;/em&gt; and &lt;em&gt;source3.dgn&lt;/em&gt; into &lt;em&gt;dest.dgn&lt;/em&gt;.&lt;br /&gt;
You can use the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch merge [destination_filename] [source_filename_1]... [source_filename_n]&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
For example, in both MicroStation V7 and V8, you'd use the following:&lt;br /&gt;
&lt;em&gt;msbatch merge dest.dgn source1.dgn source2.dgn source3.dgn&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Of course &amp;ndash; the same results can be obtained by executing &lt;em&gt;Merge&lt;/em&gt; from the &lt;em&gt;MicroStation Manger &amp;gt; File&lt;/em&gt; menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Replacing cells:&lt;/strong&gt;&lt;br /&gt;
To replace cells (excluding orphan cells) from the system command line, enter&lt;br /&gt;
&lt;em&gt;msbatch repcell.ma [DGN_file] [cell_library] [y | n] [cell_to_replace] [replacement_cell]&lt;/em&gt; where:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;DGN_file&lt;/em&gt; is the DGN file on which to operate,&lt;br /&gt;
&lt;em&gt;cell_library&lt;/em&gt; is the cell library that contains the replacement cell,&lt;br /&gt;
&lt;em&gt;y&lt;/em&gt; keeps attributes,&lt;br /&gt;
&lt;em&gt;n&lt;/em&gt; does not keep attributes,&lt;br /&gt;
&lt;em&gt;cell_to_replace&lt;/em&gt; is the name of the cell in &lt;em&gt;DGN_file&lt;/em&gt; to replace, &lt;br /&gt;
&lt;em&gt;replacement_cell&lt;/em&gt; is the name of the replacement cell in &lt;em&gt;cell_library&lt;/em&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Convert 3D to 2D&lt;/strong&gt;&lt;br /&gt;
MSBATCH can be used to quickly convert 3D files to 2D or vice versa. To do so, use the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch cnvdgn inname: outname:&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
For example, to convert all files in &lt;em&gt;C:\3D\&lt;/em&gt; and place the resulting files in &lt;em&gt;C:\2D\&lt;/em&gt; the command would be as follows:&lt;br /&gt;
&lt;em&gt;msbatch inname:c:\3d\*.dgn outname:c:\2d\&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Remember to include the trailing back-slash at the end of the outname. In addition, the file names can't have any spaces and the output files can not be written to the same folder as the input files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Batch Process Job File:&lt;/strong&gt;&lt;br /&gt;
MSBATCH can also be used to kick off a MicroStation V8's &lt;em&gt;Batch Process Job file&lt;/em&gt; by using this syntax:&lt;br /&gt;
&lt;em&gt;msbatch batchprocess [batch_process_job_file_specification]&lt;/em&gt;&lt;br /&gt;
Note, when using MSBATCH to kick off a VBA application, ensure that the command includes &lt;em&gt;MDL Load ustnvba&lt;/em&gt; at the beginning.&lt;br /&gt;
With thanks to &lt;em&gt;Russ Webber&lt;/em&gt; for providing this information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Batch Conversion Job File:&lt;/strong&gt;&lt;br /&gt;
You can run a job saved in a batch conversion job file (BCNV) directly from the system command line by using MSBATCH and the following syntax:&lt;br /&gt;
&lt;em&gt;msbatch batchconvert [batch_conversion_job_specification]&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Watch those settings:&lt;/strong&gt;&lt;br /&gt;
Before bulk processing any files, it's important to have fine-tuned your option settings and to have a good idea of what your end results are going to be. It's strongly suggested to test one or two files first and tweak the necessary settings until you have satisfactory results. After all, it would be a shame to process hundreds of files only to realize after the fact that your settings were incorrect.&lt;br /&gt;
&lt;br /&gt;
In addition, you many experience a limit to the number of files that can be included in one batch when using MSBATCH. This limit is related to the amount of system resources available and will vary from system to system. Typically, the more physical memory and swap space available, the more files you can include in a single batch process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Need more info?&lt;/strong&gt;&lt;br /&gt;
&lt;a href="ftp://docs.bentley.com/pub/dl/pdfs/en/file_portability.exe"&gt;File Portability/Translation Guide&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://selectservices.bentley.com/en-US/Support/Support+Tools/TechNotes+and+FAQs/MicroStation+J/8187+-+Using+MSBATCH.htm"&gt;Using MSBATCH&lt;/a&gt;&lt;br /&gt;
And of course the delivered documentation. 
&lt;/p&gt;
&lt;p&gt;
AskInga Article #52
&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: &lt;tags&gt;&lt;/tags&gt;&lt;/div&gt;
</description></item></channel></rss>