Command Line Publishing with inventorbatch
From a shell command line, you can convert Inventor data to Creo View format using the inventorbatch script. This chapter outlines how to use the inventorbatch command, including the most commonly used command line options. See the section inventorbatch XML Job File Elements for Command-line Usage in the Advanced Adapter Configurations chapter for a complete list of command line options.
inventorbatch Overview
Use inventorbatch to publish Inventor CAD data from the command line. The Inventor batch application converts drawings and runs Inventor in non-graphics mode. By typing a simple command at the prompt, CAD data is converted and immediately viewable using the Creo View client.
Using inventorbatch
Use a single command line to operate the Creo View Adapter for Inventor to publish CAD data. The form of command line is as follows:
inventorbatch [options] <cad_data>
A command line conversion has the following stages:
1. Open a command prompt.
2. Type in the inventorbatch command, for example:
C:\PTC\creo_view_adapters\inventor_setup\inventorbatch -p C:\published_data C:\inventor_data\inventor_test.ipt
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\inventor_setup\inventorbatch This is the batch file that runs the adapter.
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 Inventor data to be converted is given as inventor_test.ipt.
3. Press ENTER and inventorbatch is launched. When the conversion is completed, the command prompt returns.
* 
You can publish more than one instance of CAD data at a time using inventorbatch. To publish a list of CAD data, type all of the names on the command line, separated by spaces. You can also 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.
This completes the procedure for converting Inventor CAD data to Creo View format using command line publishing.
도움이 되셨나요?