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 > WPCExport_synch Commands
  
WPCExport_synch Commands
Creo Packages allows the following types of synchronization package exports:
Synchronization package export
Master synchronization package export for object ownership transfer
For detailed information about synchronization packages, see Synchronization Packages.
Synchronization Package Export
The WPCExport_synch 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_synch command for creating a synchronization package export.
Argument (long format)
Argument (Short format)
Required
Values
Description
-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
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 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
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.
-output
-t
No
Default: If specified, uses the location in preferences.
If not specified, uses 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 conflict reports is assigned by the Creo Packages software.
Synchronization Package Export for Projects
The WPCExport_synch 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_synch command for creating a synchronization package export for projects.
* 
The -context argument for projects cannot be used in conjunction with object ownership transfer arguments.
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
-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
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.
-output
-t
No
Default: If specified, uses the location in preferences.
If not specified, uses 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 conflict reports is assigned by the Creo Packages software.
Master Synchronization Package Export for Object Ownership Transfer
The WPCExport_synch 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_synch command for creating a master synchronization package for object ownership transfer.
* 
The -context argument for projects cannot be used in conjunction with object ownership transfer arguments.
Argument
Required
Values
Description
long format:
-master
short format:
-A
No
Default: N/A
Multiple values allowed: No
Specifies if the synchronization package is created in full mode or regular mode.
When this argument is used, the master synchronization is generated.
long format:
-baseline
short format:
-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
long formats:
-recipe -no recipe
short formats:
-r -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.
long format:
-preference
short format:
-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 the WPC_preferences.txt file does not exist, the default value is the system default value.
long format:
- folder
short format:
-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.
long format:
-package
short format:
-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
long format:
-help
short format:
-h
No
Default: N/A
Multiple values allowed: No
Use to access command line help.
long format:
-commentFile
short format:
-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
long format:
-comment
short format:
-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.”
long format:
-name
short format:
-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
long format:
-overwrite
short format:
-o
No
Default: N/A
Multiple values allowed: No
Overwrite the existing export package.
long format:
-user
short format:
-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.
long format:
-password
short format:
-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.
long format:
-output
short format:
-t
No
Default: If specified, uses the location in preferences.
If not specified, uses 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 conflict reports is assigned by the Creo Packages software.