Configuring the Creo View Adapter for STEP > Advanced Adapter Configurations for Creo View Adapter for STEP > stepbatch XML Job File Elements for Command-line Usage
  
stepbatch XML Job File Elements for Command-line Usage
STEP files can be converted from the command line using stepbatch. This chapter explains all of the command line options available for command line publishing. See stepbatch Overview for more information.
* 
Most of the command line options can also be used by the stepworker script.
The command string used to publish a file follows the format:
stepbatch [options] <cad_data>
You can see the command line options by typing:
stepbatch –h
where 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. <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 output file base name.
–p<name>
Set output base path.
–r<name>
Set recipe file to be used.
–vc
Disable all console print-out.
–vc1
Redirect all console print-out to stdout.
–vc2
Redirect all console print-out to stderr (default).
–ve[n]
Increment or set (if [n] is given) the error reporting level. –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. stepbatch can publish more than one file at a time. To publish a list of files, type all of the names on the command line separated by a space. Wildcards (asterisks *) can also be used, if the user is confident that the data returned will be correct. A possible command line using options is as follows:
stepbatch -vl mylogfile.txt -vc -p output file.stp