Enterprise Administration > Windchill Export and Import > PTC Windchill PLM Connector - Creo Packages Administrator's and User's Guide > Windchill PLM Connector – Creo Packages > Exporting Packages > Exporting a Package > Using the Command Line Utility > Export Commands and Arguments > WPCExport Command
  
WPCExport Command
Creo Packages supports the following types of package export using the WPCExport commands:
A complete package export
A complete package export for object ownership transfer
An incremental package export
An incremental package export for Windchill ProjectLink co-installed with Windchill PDMLink
An incremental package cannot be created without using a recipe file.
Complete Package Export
The following table explains the syntax and usage of the WPCExport command for creating a complete Creo Packages package export.
The WPCExport command can also be used with a recipe file.
Argument (long format)
Argument (Short format)
Required
Values
Description
-baselinefolder
-a
No
Default: Value specified in preferences or export will fail
Multiple values allowed: No
The baseline is created in the source system to provide a record of the exported package.
-baselinefolder “ORG1/Library/PTC Library/baselines”
-baseline
-b
Yes; if not specified, package is empty
Default: N/A
Multiple values allowed: Yes
A seed argument that specifies one or more baselines in the PLM system. All objects in the baselines are used as seeds for collection.
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
Export command—Name of baseline does not support use of “*” and “?”.
Multiple values are supported when separated by commas, such as in the following example:
-baseline baseline1, basline2
-recipe
or
-norecipe
-r
or
-c
Yes; if not specified, package is empty
Default: If specified, value in export preferences
Multiple values allowed: No
A seed argument that specifies the name of a recipe file and can have only one value. It can be combined with other seed arguments, such as name, baseline, report, and folder.
-recipe d:\wpc\Recipe\PTC_recipe.txt
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty
If the -norecipe argument is specified, a recipe file cannot be used.
-preference
-e
No
Default: From load point WPC_preferences.txt
Multiple values allowed: No
(Optional) Full path to the preferences file when the default path is not used. (Optional)
The default value is WPC_preferences.txt. If WPC_preferences.txt does not exist, the default value is the system default value.
- folder
-f
Yes; if not specified, package is empty
Default: N/A
Multiple values allowed: No
A seed argument that specifies the name of one or more folders in the PLM system. All objects in the folders are used as seeds for collection.
Name of folder seed collections.
-folder ORG1\Product/Product1\Design\CAD\
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
-package
-g
No
Default: Location specified in preferences, unless user enters the -preview argument.
Multiple values allowed: No
Name and full path of the package that the user wants to view.
Including an extension on the package name is optional.
-package d:\wpc\packages\test
-help
-h
No
Default: N/A
Use to access command line help.
-commentFile
-i
No; If it is specified, use either the -commentFile or -comment argument (mutually exclusive)
Default: N/A
Multiple values allowed: No
Attach comments to an export package. The comment file is attached by entering the file path to the comment.txt file.
-commentFile d:\data\temporary\comment.txt
-comment
-m
No; If it is specified, use either the -commentFile or -comment argument (mutually exclusive)
Default: N/A
Multiple values allowed: No
Attach comments to an export package. Comments are enclosed by quotes, or to the path to the text file.
-comment “This is a test package.”
-name
-n
Yes; if not specified, package is empty
Default: N/A
Multiple values allowed: Yes
A seed argument that specifies the name of a seed object.
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
Name of a seed object. It is assumed to be the latest iteration of the latest revision.
The option can have multiple values separated by commas.
-name Top.asm, Another_Top.asm
-overwrite
-o
No
Default: N/A
Multiple values allowed: No
Overwrite the existing export package.
-user
-u
Yes
Default: N/A
Multiple values allowed: No
User name of the system.
-user <name>
The user name and password arguments are optional. If they are not entered upon execution of the command, Creo Packages prompts you to enter a user name and password to help provide increased security for your system.
-password
-p
Yes
Default: N/A
Multiple values allowed: No
User password of the system.
-password <name>
The user name and password arguments are optional. If they are not entered upon execution of the command, Creo Packages prompts you to enter a user name and password to help provide increased security for your system. The password characters are masked.
-resolution
-s
No
Default: N/A
Multiple values allowed: No
Full path to the conflict resolution file used as input.
-resolution d:\data\conflicts\test.csv
Not applicable for theWPCExport_synch command.
-output
-t
No
Default: If specified, uses the location in preferences
If not specified, it uses the startup directory
Multiple values allowed: No
Location for conflict reports, or the result of the preview list.
-output d:\wpc\packages
If directory does not exist, create one.
Name of the report and results is assigned by the Creo Packages software.
-preview
-v
No
Default: N/A
Multiple values allowed: Yes
Used to pre-generate the list of objects to be exported.
-report
-R
No
Default: N/A
Multiple values allowed: No
Used to capture results for the list of objects to be exported.
Complete Package Export for Object Ownership Transfer
The WPCExport command can also be used with a recipe file. For detailed information about recipe files, see Exporting Packages Using the Recipe Language.
The following table explains the syntax and usage of the WPCExport command for creating a complete Creo Packages package for transferring the object ownership from the original PLM system owner to a new PLM system owner, or from an owner in a PLM system to a new owner in the same PLM system.
Argument (long format)
Argument (Short format)
Required
Values
Description
-newOwner
-O
Yes
N/A
Multiple values allowed: No
Specifies the package address location.
Creates the ownership transfer package.
The value should be the system ID (human unreadable value, which can be obtained from the package information). For example:
-newOwner 43584537450947502834023
-cancelOwnerTransfer
-C
No
Default: N/A
Multiple values allowed: No
Cancels the ongoing ownership transfer process.
This argument is mutually exclusive with -newOwner and -package arguments. There is no value to follow.
For the seed, the best practice is to use the result baseline created when ownership transfer package was created.
-noResultBaseline
-S
No
Default: N/A
Multiple values allowed: No
If this argument is specified, it means that a resulting baseline will not be created after the ownership transfer package is created. Any result baseline-related input (location, name) in the command line or preferences is ignored.
-baselinefolder
-a
No
Default: Value specified in preferences or export will fail.
Multiple values allowed: No
The baseline is created in the source system to provide a record of the exported package.
-baselinefolder “ORG1/Library/PTC Library\baselines”
-baseline
-b
Yes; if not specified, package is empty
Default: N/A
Multiple values allowed: Yes
A seed argument that specifies one or more baselines in the PLM system. All objects in the baselines are used as seeds for collection.
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
Export command—Name of baseline does not support use of “*” and “?”.
Multiple values are supported when separated by commas. For example:
-baseline baseline1, basline2
-resultBaselineFolder
-a
No
Default: The one specified in preferences if any. If not, export will fail.
Multiple values allowed: No
Specifies where the baseline is created upon successful export.
-resultbaselinefolder “ORG1/Library/PTC Library\baselines”
-resultBaselineName
No
Default:
Multiple values allowed: No
Specifies the name of the resulting baseline.
-recipe
or
-norecipe
-r
or
-c
Yes; if not specified, package is empty
Default: If specified, value in export preferences
Multiple values allowed: No
A seed argument that specifies the name of a recipe file and can have only one value. It can be combined with other seed arguments, such as name, baseline, report, and folder.
-recipe d:\wpc\Recipe\PTC_recipe.txt
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
If the -norecipe argument is specified, a recipe file cannot be used.
-preference
-e
No
Default: From load point WPC_preferences.txt
Multiple values allowed: No
(Optional) Full path to the preferences file when the default path is not used.
The default value is WPC_preferences.txt. If WPC_preferences.txt does not exist, the default value is the system default value.
- folder
-f
Yes; if not specified, package is empty
Default: N/A
Multiple values allowed: No
A seed argument that specifies the name of one or more folders in the PLM system. All objects in the folders are used as seeds for collection.
Name of folder seed collections.
-folder ORG1\Product/Product1\Design\CAD\
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
-package
-g
No
Default: Location specified in preferences, unless user enters the -preview argument.
Multiple values allowed: No
Name and full path of the package that the user wants to view.
Including an extension on the package name is optional.
-package d:\wpc\packages\test
-help
-h
No
Default: N/A
Multiple values allowed: No
Use to access command line help.
-commentFile
-i
No; If it is specified, use either the -commentFile or -comment argument (mutually exclusive)
Default: N/A
Multiple values allowed: No
Attach comments to an export package. The comment file is attached by entering the file path to the comment.txt file.
-commentFile d:\data\temporary\comment.txt
-comment
-m
No; If it is specified, use either the -commentFile or -comment argument (mutually exclusive)
Default: N/A
Multiple values allowed: No
Attach comments to an export package. Comments are enclosed by quotes, or to the path to the text file.
-comment “This is a test package.”
-name
-n
Yes; if not specified, package is empty
Default: N/A
Multiple values allowed: Yes
A seed argument that specifies the name of a seed object.
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
Name of a seed object. It is assumed to be the latest iteration of the latest revision.
The option can have multiple values separated by commas.
-name Top.asm, Another_Top.asm
-overwrite
-o
No
Default: N/A
Multiple values allowed: No
Overwrite the existing export package.
-user
-u
Yes
Default: N/A
Multiple values allowed: No
User name of the system.
-user <name>
The user name and password arguments are optional. If they are not entered upon execution of the command, Creo Packages prompts you to enter a user name and password to help provide increased security for your system.
-password
-p
Yes
Default: N/A
Multiple values allowed: No
User password of the system.
-password <name>
The user name and password arguments are optional. If they are not entered upon execution of the command, Creo Packages prompts you to enter a user name and password to help provide increased security for your system. The password characters are masked.
-resolution
-s
No
Default: N/A
Multiple values allowed: No
Full path to the conflict resolution file used as input.
-resolution d:\data\conflicts\test.csv
Not applicable for the WPCExport_synch command.
-output
-t
No
Default: If specified, uses the location in preferences.
If not specified, it uses the startup directory.
Multiple values allowed: No
Location for conflict reports, or the result of the preview list.
-output d:\wpc\packages
If directory does not exist, create one.
Name of the report and results is assigned by the Creo Packages software.
-preview
-v
No
Default: N/A
Multiple values allowed: Yes
Used to pre-generate the list of objects to be exported.
-report
-R
No
Default: N/A
Multiple values allowed: No
Used to capture results for the list of objects to be exported.
Incremental Package Export
The following table explains the syntax and usage of the WPCExport command for creating an incremental package using Creo Packages package export.
The WPCExport command can also be used with a recipe file. For detailed information about recipe files, see Exporting Packages Using the Recipe Language.
Argument (long format)
Argument (Short format)
Required
Values
Description
-baselinefolder
-a
No
Default: Value specified in preferences or export will fail
Multiple values allowed: No
The baseline is created in the source system to provide a record of the exported package.
-baselinefolder “ORG1/Library/PTC Library/baselines”
-baseline
-b
Yes; if not specified, package is empty
Default: N/A
Multiple values allowed: Yes
A seed argument that specifies one or more baselines in the PLM system. All objects in the baselines are used as seeds for collection.
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
Export command—Name of baseline does not support use of “*” and “?”.
Multiple values are supported when separated by commas. For example:
-baseline baseline1, basline2
-recipe
or
-norecipe
-r
or
-c
Yes; if not specified, package is empty.
You must specify the -recipe argument for an incremental package.
Default: If specified, value in export preferences
Multiple values allowed: No
A seed argument that specifies the name of a recipe file and can have only one value. It can be combined with other seed arguments, such as name, baseline, report, and folder.
-recipe d:\wpc\Recipe\PTC_recipe.txt
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
If the -norecipe argument is specified, a recipe file cannot be used.
-preference
-e
No
Default: From load point WPC_preferences.txt
Multiple values allowed: No
(Optional) Full path to the preferences file when the default path is not used. (Optional)
The default value is WPC_preferences.txt. If WPC_preferences.txt does not exist, the default value is the system default value.
- folder
-f
Yes; if not specified, package is empty
Default: N/A
Multiple values allowed: No
A seed argument that specifies the name of one or more folders in the PLM system. All objects in the folders are used as seeds for collection.
Name of folder seed collections.
-folder ORG1\Product/Product1\Design\CAD\
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
-package
-g
No
Default: Location specified in preferences, unless user enters the -preview argument
Multiple values allowed: No
Name and full path of the package that the user wants to view.
Including an extension on the package name is optional.
-package d:\wpc\packages\test
-help
-h
No
Default: N/A
Use to access command line help.
-commentFile
-i
No; If it is specified, use either the -commentFile or -comment argument (mutually exclusive)
Default: N/A
Multiple values allowed: No
Attach comments to an export package. The comment file is attached by entering the file path to the comment.txt file.
-commentFile d:\data\temporary\comment.txt
-comment
-m
No; If it is specified, use either the -commentFile or -comment argument (mutually exclusive)
Default: N/A
Multiple values allowed: No
Attach comments to an export package. Comments are enclosed by quotes, or to the path to the text file.
-comment “This is a test package.”
-name
-n
Yes; if not specified, package is empty
Default: N/A
Multiple values allowed: Yes
A seed argument that specifies the name of a seed object.
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
Name of a seed object. It is assumed to be the latest iteration of the latest revision.
The option can have multiple values separated by commas.
-name Top.asm, Another_Top.asm
-overwrite
-o
No
Default: N/A
Multiple values allowed: No
Overwrite the existing export package.
-user
-u
Yes
Default: N/A
Multiple values allowed: No
User name of the system.
-user <name>
he user name and password arguments are optional. If they are not entered upon execution of the command, Creo Packages prompts you to enter a user name and password to help provide increased security for your system.
-password
-p
Yes
Default: N/A
Multiple values allowed: No
User password of the system.
-password <name>
The user name and password arguments are optional. If they are not entered upon execution of the command, Creo Packages prompts you to enter a user name and password to help provide increased security for your system. The password characters are masked.
-resolution
-s
No
Default: N/A
Multiple values allowed: No
Full path to the conflict resolution file used as input.
-resolution d:\data\conflicts\test.csv
Not applicable for the WPCExport_synch command.
-output
-t
No
Default: If specified, uses the location in preferences
If not specified, it uses the startup directory
Multiple values allowed: No
Location for conflict reports, or the result of the preview list.
-output d:\wpc\packages
If directory does not exist, create one.
Name of the report and results is assigned by the Creo Packages software.
-preview
-v
No
Default: N/A
Multiple values allowed: Yes
Used to pre-generate the list of objects to be exported.
-report
-R
No
Default: N/A
Multiple values allowed: No
Used to capture results for the list of objects to be exported.
Incremental Package Export for Windchill ProjectLink Objects
The following table explains the syntax and usage of the WPCExport command for creating an incremental package using Creo Packages package export for projects.
* 
The -context argument for projects cannot be used in conjunction with object ownership transfer arguments.
The WPCExport command can also be used with a recipe file. For detailed information about recipe files, see Exporting Packages Using the Recipe Language.
Argument (long format)
Argument (Short format)
Required
Values
Description
-context
-N
Yes
Default: N/A
Multiple values allowed: No
Specifies which context to work with. The value has to be unique per site with Organization information.
-context /PTC/Project/My_project
-baselinefolder
-a
No
Default: Value specified in preferences or export will fail
Multiple values allowed: No
The baseline is created in the source system to provide a record of the exported package.
-baselinefolder “ORG1/Library/PTC Library/baselines”
-baseline
-b
Yes; if not specified, package is empty
Default: N/A
Multiple values allowed: Yes
A seed argument that specifies one or more baselines in the PLM system. All objects in the baselines are used as seeds for collection.
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
Export command—Name of baseline does not support use of “*” and “?”.
Multiple values are supported when separated by commas. For example:
-baseline baseline1, basline2
-recipe
or
-norecipe
-r
or
-c
Yes; if not specified, package is empty
You must specify the -recipe argument for an incremental package
Default: If specified, value in export preferences
Multiple values allowed: No
A seed argument that specifies the name of a recipe file and can have only one value. It can be combined with other seed arguments, such as name, baseline, report, and folder.
-recipe d:\wpc\Recipe\PTC_recipe.txt
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
If the -norecipe argument is specified, a recipe file cannot be used.
-preference
-e
No
Default: From load point WPC_preferences.txt
Multiple values allowed: No
(Optional) Full path to the preferences file when the default path is not used. (Optional)
The default value is WPC_preferences.txt. If WPC_preferences.txt does not exist, the default value is the system default value.
- folder
-f
Yes; if not specified, package is empty
Default: N/A
Multiple values allowed: No
A seed argument that specifies the name of one or more folders in the PLM system. All objects in the folders are used as seeds for collection.
Name of folder seed collections.
-folder ORG1\Product/Product1\Design\CAD\
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
-package
-g
No
Default: Location specified in preferences, unless user enters the -preview option
Multiple values allowed: No
Name and full path of the package that the user wants to view.
Including an extension on the package name is optional.
-package d:\wpc\packages\test
-help
-h
No
Default: N/A
Use to access command line help.
-commentFile
-i
No; If it is specified, use either the -commentFile or -comment argument (mutually exclusive)
Default: N/A
Multiple values allowed: No
Attach comments to an export package. The comment file is attached by entering the file path to the comment.txt file.
-commentFile d:\data\temporary\comment.txt
-comment
-m
No; If it is specified, use either the -commentFile or -comment argument (mutually exclusive)
Default: N/A
Multiple values allowed: No
Attach comments to an export package. Comments are enclosed by quotes, or to the path to the text file.
-comment “This is a test package.”
-name
-n
Yes; if not specified, package is empty
Default: N/A
Multiple values allowed: Yes
A seed argument that specifies the name of a seed object.
One or more seed arguments must be provided. The seed arguments are: baseline, recipe folder, and name. If no seed argument is specified, the package is empty.
Name of a seed object. It is assumed to be the latest iteration of the latest revision.
The option can have multiple values separated by commas.
-name Top.asm, Another_Top.asm
-overwrite
-o
No
Default: N/A
Multiple values allowed: No
Overwrite the existing export package.
-user
-u
Yes
Default: N/A
Multiple values allowed: No
User name of the system.
-user <name>
The user name and password arguments are optional. If they are not entered upon execution of the command, Creo Packages prompts you to enter a user name and password to help provide increased security for your system.
-password
-p
Yes
Default: N/A
Multiple values allowed: No
User password of the system.
-password <name>
he user name and password arguments are optional. If they are not entered upon execution of the command, Creo Packages prompts you to enter a user name and password to help provide increased security for your system. The password characters are masked.
-resolution
-s
No
Default: N/A
Multiple values allowed: No
Full path to the conflict resolution file used as input.
-resolution d:\data\conflicts\test.csv
Not applicable for the WPCExport_synch command.
-output
-t
No
Default: If specified, uses the location in preferences
If not specified, it uses the startup directory
Multiple values allowed: No
Location for conflict reports, or the result of the preview list.
-output d:\wpc\packages
If directory does not exist, create one.
Name of the report and results is assigned by the Creo Packages software.
-preview
-v
No
Default: N/A
Multiple values allowed: Yes
Used to pre-generate the list of objects to be exported.
-report
-R
No
Default: N/A
Multiple values allowed: No
Used to capture results for the list of objects to be exported.