Configuring the PVS Optimize Utility > Command Line Execution of the PVS Optimize Utility > Using pvsoptimizebatch
  
Using pvsoptimizebatch
The operation of the pvsoptimize involves utilizing a single command to change the input PVS files according to the pvsoptimize Recipe file.
The form of command line is as follows:
pvsoptimizebatch [options] <PVS_file>
A command line conversion has the following stages:
1. Open a command prompt and navigate to the directory containing the file you want to convert.
For the purposes of this example, the directory is C:\pvsoptimize_data\.
2. Type in the pvsoptimizebatch command, for example:
<path>\pvsoptimizebatch -r <recipe_file> -p <output_path> -o <output_name> pvsoptimize_test.pvs
In this example, the command line can be broken down in order from left to right as follows:
Path to the pvsoptimizebatch script in the PVS Optimize Utility’s setup configuration folder, followed by the command to convert the data, for example, C:\ptc\pvsoptimize_setup\pvsoptimizebatch
Option -r <recipe_file> defines the Recipe file to use instead of the default pvsoptimize.rcp file that resides in the configured setup folder.
Option -p <output path> defines the output folder path. This is the name of the directory where the adapter places the converted data.
Option -o <output_name> defines the base name used for the output files.
The pvsoptimize_test.pvs path and file name represents the Creo View structure that pvsoptimize is to process.
3. Press Enter and pvsoptimizebatch is launched. When the command prompt returns, the conversion is completed.
* 
pvsoptimizebatch 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 spaces. Wildcards (asterisks *) can also be used, if you are confident that the data returned will be correct.
4. You can now view the resulting binary PVS files in Creo View.
This completes the procedure for converting pvsoptimize files using the command line.