Batch Mode


Batch-Mode allows you to convert files directly from command line or from other Windows application. Running conversion in batch-mode will omit application's user interface. To run conversion in batch-mode you have to use cm.exe (Conversion Module)  application which can be found in Solution Box intallation directory. Below you can find more details about conversion module parameters.

Parameters formats:
-param or /param Parameter without value (switch)
-param:string or /param:"string" Parameter with value:

-param:value

or

-param:"value with white spaces"

Note !!!
- Some of the file names are containing white-spaces. In such case please use quotation-marks.
- We recommend to pass full names of files as a parameters

-param:{a|b|c} Parameter with value and value must be equal to one of listed possibilities.

-opt:{a|b|c} means one of the following options :

-opt:a or -opt:b or -opt:c




Conversion Parameters:
-solution:path
-s:path

Full path of Soultion File that will be used by conversion module to perform conversion. User is able to prepare conversion solution in Conversion Solution Box application or using Conversion Wizard . Once solution is stored to disk, it may be further used by conversion module (cm.exe) to perform conversion. This parameter is mutually exclulsive with -file one.

-template:path
-t:path

Using this option user is able to import definition of tools (with their settings) from existing Solution File.  Path should contain full path of Solution File with tools to import. Note that user have to specify source file (see -file parameter) in order to complete conversion. This parameter is mutually exclusive with -solutionone.

-file:path
-f:path
Defines source file that should be converted by conversion module. Note that user is responsible to additionally define tool (or tools) that will take part in conversion. To do this, please use -template parameter. 
-abortevent:eventname This function defines name of named event that can be used in order to terminate conversion process. Once event is set as signaled, then conversion is terminated. This parameter should be used only by advanced users.

-logtofile:filename

Defines file name for conversion report file. Once this parameter is set, conversion report will be created at location pointed by this parameter. You may use this parameter multiple times in order to create many copies of report in different places.


Example:


cm.exe -file:"C:\source.dwg" -template:"C:\mysolution.c2cs" -logtofile:"C:\Conversion\report.txt" 

Line above will launch conversion in batch mode and program will convert file C:\source.dwg using tools definition from solution C:\mysolution.c2cs. Conversion report will be created in directory C:\Conversion\ and file report.txt will contain conversion log.


Copyrights 2008 dubiel&polok Ing. Buero GbR
All rights reserved.