Command Line Publishing with stepbatch
From a shell command line, STEP CAD data can be converted to Creo View format using the stepbatch script. This chapter outlines how to use the stepbatch command, including the most commonly used command line options. For a complete list of command line options, refer to the Advanced Adapter Configurations chapter.
stepbatch Overview
stepbatch is used to publish STEP CAD data from the command line. By typing a simple command at the prompt, Worker Agent is converted and immediately viewable using the Creo View client.
Using stepbatch
The operation of the Creo View Adapter for STEP involves utilizing a single command to publish CAD data.
The form of command line is as follows:
stepbatch [options] <cad_data>
A command line conversion has the following stages:
1. Open a command prompt and navigate to the directory containing the CAD data you want to convert.
2. Type in the stepbatch command, for example:
C:\ptc\step_setup\stepbatch -p output step_test.stp
In this example, the command line can be broken down in order from left to right as follows:
a. The setup directory containing the adapter configuration, followed by the command to convert the data:
C:\ptc\step_setup\stepbatch
b. Option -p <output path> is shown as output. This is the name of the directory where the adapter places the converted data.
c. The STEP data to be converted is given as step_test.stp.
3. Press Enter and stepbatch is launched. When the command prompt returns, the conversion is completed.
* 
stepbatch 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 spaces. Wildcards (asterisks *) can also be used, if the user is confident that the data returned will be correct.
4. You can now open the converted data output in Creo View.
This completes the procedure for converting STEP CAD data to Creo View format using command line publishing.
Was this helpful?