ugbatch XML Job File Elements for Command-line Usage
NX CAD data can be converted from the command line using ugbatch. This chapter explains all of the command line options available for command line publishing. See Command Line Publishing with ugbatch for more information.
* 
Most of the command line options can also be used by the ugpublish and ugworker scripts.
The command string used to publish CAD data follows the format: ugbatch [options] <cad_data>
You can see the command line options by typing: ugbatch –h
where the options returned are described in the following table:
Command
Purpose
–? –h
For basic help page. UNIX shells may try to export the ?, so –? should be typed in quotes, for example, “-?”.
@<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 setting <setting> and set its value as <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. ugbatch 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 the user is confident that the data returned will be correct. A possible command line using options is as follows:
ugbatch -vl mylogfile.txt -vc -p output file.prt
Было ли это полезно?