Command Line Publishing with ccmodelbatch
From a shell command line, you can convert Creo Elements/Direct Modeling CAD data to Creo View format using the ccmodelbatch script. This chapter outlines how to use the ccmodelbatch command, including the most commonly used command line options.
ccmodelbatch Overview
Use ccmodelbatch to publish Creo Elements/Direct Modeling CAD data from the command line. ccmodelbatch runs Creo View Modeling in non-graphics mode. When you type the command at the prompt, CAD data is converted and immediately viewable using the Creo View client.
Using ccmodelbatch
The operation of the Creo View Adapter for Creo Elements/Direct Modeling involves utilizing a single command to publish CAD data.
The form of command line is as follows:
ccmodelbatch [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.
For the purposes of this example, the directory is C:\\ccmodel_data.
2. Type in the ccmodelbatch command, for example:
C:\ptc\ccmodel_setup\swbatch -p output ccmodel_test.sdp
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\ccmodel_setup\ccmodelbatch
b. Option -p <output path> defines the output directory. This is the name of the directory where the adapter places the converted data.
c. The Creo Elements/Direct Modeling source data is ccmodel_test.sdp.
3. Press ENTER and ccmodelbatch is launched. When the command prompt returns, the conversion is completed.
* 
You can publish more than one instance of CAD data using ccmodelbatch at a time. To publish a list of CAD data, type all of the names on the command line, separated by a space. You can use Wildcards (asterisks *) if you are confident that the data returned will be correct.
4. You can now open the converted data output in Creo View client.
Was this helpful?