Enterprise Administration
> Windchill Export and Import
> PT C Windchill
PLM Connector - Creo Packages Administrator's and User's Guide
> Creo
Packages
> Importing Packages
> Importing a Package
> Using the
Command Line Utility
Using the Command Line Utility
The command line utility administers Creo Packages
commands and arguments f or creating packages of Creo
Parametric files to be shared f rom a source PLM system
to one or more target PLM systems where Creo
Parametric and Creo Packages are installed.
The command line utility is implemented as a combination
of argument and variables. It can be used f or automatic
import scenarios where a script contains one or more
command line arguments, or to perf orm a specific action
at the command line, typically by a Creo Parametric user.
The f ollowing table contains essential commands f or the
command line utility:
Command Name Descript ion
WPCImport Initiates the import of a
package that accepts
arguments and values.
WPCView Initiates package viewer and
takes one package name as
input.
WPCDelete Deletes the temporary Creo
Packages workspaces that
remain in Windchill, if
WPCExport f ails.
WPCProEShutdown Disconnects the Creo
Parametric session.
Rules
The f ollowing rules govern command line entries in Creo
Packages:
• The command line is case sensitive, except when
specif ying a location.
• If a string contains a space or any special characters
(f or example, commas), enclose the string in quotation
marks. For example, if the f older name is test f older,
then it is presented as:
“test folder”
• All directory paths can be either absolute or relative.
• If multiple values are allowed, use a comma (,) to
separate them.
Some objects, such as the Windchill baseline,
allow a comma in a name. In this instance, use
the backslash escape character (\) to
distinguish the comma f rom the multivalue
separator.
• The prefixes used in the wpc_preferences.txt
file are the f ollowing:
◦ %o—Indicates what operation is being perf ormed.
Values can be export or import.
◦ %u—The username f or Creo Packages.
• The directory separator is platf orm- specific. On
Windows the indicator is two slashes (\\) when
specif ying the paths f or a recipe file location or a
command line argument location. You can also use the
syntax ${[Link]} as a directory separator. When
${[Link]} is used in wpc_preferences.txt,
$ is replaced with \\. The \\ and the
${[Link]}separators can be used in combination.
For example:
#[Link]=c:\\ptc\\wpc${[Link]}recipes\
\[Link]
• Conflict resolution is specified as the f ollowing:
conflict.<ConflictType>=<ResolutionType>
There can be multiple resolution type values. The
conflict type can have keywords assigned.
In this example, OVERRIDE_ FIRST_ ITERATION is the
conflict type and INCLUDE is the resolution type.
Multiple values f or OVERRIDE_ FIRST_ ITERATION could
be INCLUDE, SKIP, USE_ LATEST_ ON- PREVIOUS.
## Possible resolutions for OVERRIDE_FIRST_ITERATIONS CONFLICT
ARE include, skip, use_latest_on_previous
# conflict.OVERRIDE_FIRST_ITERATION=INCLUDE
WPCDelete Utility
This utility is applicable to Windchill PDMLink users.
Creo Packages creates temporary workspaces f or users
during a WPCExport operation. If the WPCExport does
complete successf ully, or if an abnormal condition arises,
this utility deletes any temporary workspaces created by
Creo Packages.
Bef ore running the WPCDelete utility, ensure that
no other session is running on the machine, as it
also deletes the Creo Packages workspace
created in the other session.
Perf orm the f ollowing steps to run the WPCDelete utility.
1. From the command prompt, go to the
%WPC_HOME%\bin directory.
2. Execute [Link] -<user> -
<password>
3. A success or warning messages appears with the
appropriate user action.
WPCProEShutdown Utility
Creo Packages allows Creo Parametric to run in shared
mode. When Creo Parametric is shared, the Creo
Packages client uses the available session, instead of
creating a new session. A shared connection can be
between two or more Creo Parametric users on the same
client installation.
Perf orm the f ollowing steps to shut down the shared
connections:
1. From the command prompt, go to the
%WPC_HOME%\bin directory.
2. Execute [Link] -<user> -
<password>
3. A success or warning messages appears with the
appropriate user action.
Import Commands and Arguments
This section contains common Creo Packages
commands and arguments used when importing a package
to a target PLM system.
WPCImport Command
This section contains inf ormation about the complete,
incremental, and synchronization package import. For
detailed inf ormation about packages, see Complete,
Incremental, and Synchronization Packages.
Complete, Incremental, and
Synchronization Package Import
The arguments in the f ollowing table are common to the
WPCImport command f or a complete and incremental
package import:
Argument Argument Required Values
(long (short
format ) format )
- baseline -a No Def ault: Value sp
f older pref erences
Multiple values a
- -e No Def ault: f rom loa
pref erence wpc_prefere
Multiple values a
- f older -f No Def ault: Specifie
pref erences
Multiple values a
- package -g No. Def ault: Location
in pref erences, u
enters - preview o
Multiple values a
- preview -v No Def ault: N/A
Multiple values a
- help -h No Def ault: N/A
- mapping -m No Def ault: Read f ro
pref erences
Multiple values a
- validate -v No Def ault: N/A
Multiple values a
- resolution -s No. Def ault: N/A
Multiple values a
- user -u Yes Def ault: N/A
Multiple values a
- password -p Yes Def ault: N/A
Multiple values a
- output -t No Def ault: Startup
unless specified
pref erences.
Multiple values a
Complete, Incremental, and
Synchronization Package Import for
Projects
The arguments in the f ollowing table are common to the
WPCImport command f or a complete, incremental, and
synchronization package import f or projects.
The -context argument f or import of project
packages cannot be used in conjunction with
object ownership transf er arguments.
Argument Argument Required Values
(long (short
format ) format )
- context -N Yes Def ault: N/A
Multiple values a
- baseline -a No Def ault: Value sp
f older pref erences
Multiple values a
- -e No Def ault: f rom loa
pref erence wpc_prefere
Multiple values a
- f older -f No Def ault: Specifie
pref erences
Multiple values a
- package -g No. Def ault: Location
in pref erences, u
enters -previe
Multiple values a
- preview -v No Def ault: N/A
Multiple values a
- help -h No Def ault: N/A
- mapping -m No Def ault: Read f ro
pref erences
Multiple values a
- validate -v No Def ault: N/A
Multiple values a
- resolution -s No. Def ault: N/A
Multiple values a
- user -u Yes Def ault: N/A
Multiple values a
- password -p Yes Def ault: N/A
Multiple values a
- output -t No Def ault: Startup
unless specified
pref erences.
Multiple values a
Complete Package Import for Object
Ownership Transfer
The arguments in the f ollowing table are common to the
WPCImport command f or a complete object ownership
transf er package:
Argument Argument Required Values
(long (short
format ) format )
- result -y No N/A
Package Multiple values
allowed: No
- result -a No Def ault: The one
Baseline specified in
Folder pref erences if an
not, the export f
Multiple values
allowed: No
- noResult -S No N/A
Baseline Multiple values
allowed: No
- -e No Def ault: f rom loa
pref erence point
WPC_ pref erence
Multiple values
allowed: No
- f older -f No Def ault: Specifie
pref erences
Multiple values
allowed: No
- package -g No. Def ault: Location
specified in
pref erences, unle
user enters - prev
option
Multiple values
allowed: No
- preview -v No Def ault: N/A
Multiple values
allowed: Yes
- help -h No Def ault: N/A
- mapping -m No Def ault: Read f ro
pref erences
Multiple values
allowed: No
- validate -v No Def ault: N/A
Multiple values
allowed: No
- resolution -s No. Def ault: N/A
Multiple values
allowed: No
- user -u Yes Def ault: N/A
Multiple values
allowed: No
- password -p Yes Def ault: N/A
Multiple values
allowed: No
- output -t No Def ault: Startup
directory, unless
specified in
pref erences.
Multiple values
allowed: No
Master Synchronization Package for
Object Owner Transfer
The arguments in the f ollowing table are common to the
WPCImport command used in a master synchronization
package f or an object ownership transf er:
Argument (long Argument Required Values
format ) (short
format )
- resultPackage -y No N/A
Multiple
- baselinef older -a No Def ault
pref ere
Multiple
- -a No Def ault
resultBaselineFolder pref ere
the imp
Multiple
- noresultBaseline -S No N/A
Multiple
- pref erence -e No Def ault
wpc p
wpc_p
Multiple
- f older -f No Def ault
pref ere
Multiple
- package -g No. Def ault
in pref e
enters -
Multiple
- preview -v No Def ault
Multiple
- help -h No Def ault
- mapping -m No Def ault
pref ere
Multiple
- validate -v No Def ault
Multiple
- resolution -s No. Def ault
Multiple
- user -u Yes Def ault
Multiple
- password -p Yes Def ault
Multiple
- output -t No Def ault
unless s
unless s
pref ere
Multiple
WPCImport Command Syntax/Usage
Example
[Link] -user %user_name% -password %user_password% -package
d:\work\packages\[Link] -validate
WPCView Command
The arguments in the f ollowing table are common to the
WPCView command:
Argument Argument Required Values De
(long (short
format ) format )
- -g Yes Def ault: N/A S
package Multiple th
values th
allowed: No -p
- output -t No Def ault: S
Startup pa
directory, If
unless cr
specified in N
pref erences. C
Multiple -o
values d
allowed: No
WPCView Command Syntax/Usage
Example
usage: WPCView -package(-g) [-output(-t) ] [-help(-h) ]
WPCView Command Example
[Link] -package d:\cwp\packages\[Link]