Configuring the Creo View Adapter for DWF > Advanced Adapter Configurations for DWF > dwfbatch XML Job File Elements for Command-line Usage
  
dwfbatch XML Job File Elements for Command-line Usage
DWF CAD data can be converted from the command line using dwfbatch. This chapter explains the command line options for command line publishing. See Command Line Publishing for DWF for more information.
* 
Most of the command line options can also be used by the dwfworker scripts.
The command string used to publish CAD data follows the format:
dwfbatch [options] <cad_data>
You can see the command line options by typing dwfbatch –h.
The options returned are described in the following table:
Available Command Line Options
Command
Purpose
–? –h
For basic help page.
@<file>
Read options from the response file <file>.
–CP
Use piped communication to server.
–CS<host><socket>
Socket communication <host><socket>.
-DA<alias>
Define the worker alias name.
–d<depth>
Set the conversion file depth. When converting, an assembly file determines the depth to which the hierarchy should be traversed. The default is all.
-De<variable> <value>
Define an environment setting <setting> and set its value as <value>.
-Dr<variable> <value>
Define a recipe configuration variable <variable> set to a value <value>.
–ED
Set environment to dvconvert mode.
–EP
Set environment to publisher mode.
–EW<type>
Set environment to worker mode. The variable <type> is passed to the Worker Agent to identify the worker type.
–H
For extended Help options.
–I
Identify the version of the adapter being used.
–o<name>
Set base name for the output file.
–p<name>
Set base path for the output file.
–r<name>
Set recipe file to be used.
–vc
Disable all console print outs.
–vc1
Redirect all console print outs to stdout.
–vc2
Redirect all console print outs to stderr (default).
–ve[n]
Increment or set (if [n] is given) the error reporting level. Using –ve0 disables all error reporting, default 1.
–vl<file>
Direct all printed output to <file>.
–vL<file>
Append all printed output to <file>.
-vm[module] <flag>
Enable monitor logging for the main program or given module.
–vn<file>
Direct all printed output to new log file <file>_#.log.
–vp<n>
Set the process verbosity flag. You can list the possible modules using the –I option. Flags are listed in the source code.
–vt
Give the current date and time stamp with all print outs.
–vT
Give the process run time stamp with all print outs.
–vw[n]
Increment or set the warning reporting level, see –ve[n].
The command line <cad_data> defines what is to be converted. dwfbatch can publish more than one instance of CAD data at a time. To publish a list of CAD data, type all of the names on the command line separated by a space. Wildcards (asterisks *) can also be used, if you are confident that the data returned will be correct. A possible command line using options is as follows:
dwfbatch -vl mylogfile.txt -vc -p output file.dwf