Enterprise Administration > Windchill Export and Import > PTC Windchill PLM Connector - Creo Packages Administrator's and User's Guide > Windchill PLM Connector – Creo Packages > Importing Packages > Importing a Package > Using the Command Line Utility > Import Commands and Arguments > WPCImport Command
  
WPCImport Command
This section contains information about the complete, incremental, and synchronization package import. For detailed information about packages, see Complete, Incremental, and Synchronization Packages.
Complete, Incremental, and Synchronization Package Import
The arguments in the following table are common to the WPCImport command for a complete and incremental package import:
Argument (long format)
Argument (short format)
Required
Values
Description
-baseline folder
-a
No
Default: Value specified in preferences
Multiple values allowed: No
Where the baseline is created if the import succeeds.
If no value is specified in preferences, the baseline is not created.
-baseline folder “ORG1 /Library/PTC Library\baselines”
-preference
-e
No
Default: from load point wpc_preferences.txt
Multiple values allowed: No
Specifies the full path to the preferences file when the default path is not used. (Optional)
If wpc_preferences.txt doesn't exist, the default value is your system default value.
-folder
-f
No
Default: Specified in preferences
Multiple values allowed: No
Specifies where objects are imported. The origin of the object does not affect its destination.
This option is applicable for new objects only. Any existing objects follow the location for existing objects.
-folder PTCORG\Product/Product1\Foreign
-package
-g
No.
Default: Location specified in preferences, unless user enters -preview option
Multiple values allowed: No
Specifies the exact location of the package and the package name, when importing a package.
The package name may or may not contain an extension.
-package d:\cwp\packages\test
-preview
-v
No
Default: N/A
Multiple values allowed: Yes
Used to pre-generate the list of objects to be imported.
-help
-h
No
Default: N/A
Use to access command line help.
-mapping
-m
No
Default: Read from preferences
Multiple values allowed: No
Specifies the folder location where the mapping file is to found.
-mappingdir d:\work\packages\mappings
-validate
-v
No
Default: N/A
Multiple values allowed: No
Validates the package against target PLM system without attempting import and is used with the -package argument.
-package d:\work\packages\test.wpc -validate
-resolution
-s
No.
Default: N/A
Multiple values allowed: No
Specifies the full path to the conflict resolution file used as input.
-resolution d:\data\conflicts\test.csv
-user
-u
Yes
Default: N/A
Multiple values allowed: No
The user name of the PLM system being connected to.
-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
The user password of the PLM system being connected to.
-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: Startup directory, unless specified in preferences.
Multiple values allowed: No
Specifies the location for the HTML page to be stored.
If the directory does not exist, create one.
Name of the output is assigned by Creo Packages.
-output d:\work\packages
Complete, Incremental, and Synchronization Package Import for Projects
The arguments in the following table are common to the WPCImport command for a complete, incremental, and synchronization package import for projects.
* 
The -context argument for import of project packages 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 folder
-a
No
Default: Value specified in preferences
Multiple values allowed: No
Where the baseline is created if the import succeeds.
If no value is specified in preferences, the baseline is not created.
-baselinefolder “ORG1/Library/PTC Library\baselines”
-preference
-e
No
Default: from load point wpc_preferences.txt
Multiple values allowed: No
Specifies the full path to the preferences file when the default path is not used. (Optional)
If wpc_preferences.txt doesn't exist, the default value is your system default value.
-folder
-f
No
Default: Specified in preferences
Multiple values allowed: No
Specifies where objects are imported. The origin of the object does not affect its destination.
This option is applicable for new objects only. Any existing objects follow the location for existing objects.
-folder PTCORG\Product/Product1\Foreign
-package
-g
No.
Default: Location specified in preferences, unless user enters -preview argument
Multiple values allowed: No
Specifies the exact location of the package and the package name, when importing a package.
The package name may or may not contain an extension.
-package d:\cwp\packages\test
-preview
-v
No
Default: N/A
Multiple values allowed: Yes
Used to pre-generate the list of objects to be imported.
-help
-h
No
Default: N/A
Use to access command line help.
-mapping
-m
No
Default: Read from preferences
Multiple values allowed: No
Specifies the folder location where the mapping file is to found.
-mappingdir d:\work\packages\mappings
-validate
-v
No
Default: N/A
Multiple values allowed: No
Validates the package against target PLM system without attempting import and is used with the -package argument.
-package d:\work\packages\test.wpc -validate
-resolution
-s
No.
Default: N/A
Multiple values allowed: No
Specifies the full path to the conflict resolution file used as input.
-resolution d:\data\conflicts\test.csv
-user
-u
Yes
Default: N/A
Multiple values allowed: No
The user name of the PLM system being connected to.
-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
The user password of the PLM system being connected to.
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 is masked.
-password <name>
-output
-t
No
Default: Startup directory, unless specified in preferences.
Multiple values allowed: No
Specifies the location for the HTML page to be stored.
If the directory does not exist, create one.
Name of the output is assigned by Creo Packages.
-output d:\work\packages
Complete Package Import for Object Ownership Transfer
The arguments in the following table are common to the WPCImport command for a complete object ownership transfer package:
Argument (long format)
Argument (short format)
Required
Values
Description
-result Package
-y
No
N/A
Multiple values allowed: No
Specifies where the resulted Master synchronization package is created.
If this argument is not specified, one is created in the Startup directory.
-resultPackage d:\data\WPC\ownership
-result Baseline Folder
-a
No
Default: The one specified in preferences if any. If not, the export fails.
Multiple values allowed: No
Specifies where the baseline is created upon successful export.
-resultbaselinefolder “ORG1/Library/PTC Library\baselines”
-noResult Baseline
-S
No
N/A
Multiple values allowed: No
If this argument is specified, the resulting baselines after the ownership transfer package is created is ignored.
-preference
-e
No
Default: from load point WPC_preferences.txt
Multiple values allowed: No
Specifies the 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 doesn't exist, the default value is your system default value.
-folder
-f
No
Default: Specified in preferences
Multiple values allowed: No
Specifies where objects are imported. The origin of the object does not affect its destination.
This option is applicable for new objects only. Any existing objects follow the location for existing objects.
-folder PTCORG\Product/Product1\Foreign
-package
-g
No.
Default: Location specified in preferences, unless user enters -preview option
Multiple values allowed: No
Specifies the exact location of the package and the package name, when importing a package.
The package name may or may not contain an extension.
-package d:\cwp\packages\test
-preview
-v
No
Default: N/A
Multiple values allowed: Yes
Used to pre-generate the list of objects to be imported.
-help
-h
No
Default: N/A
Use to access command line help.
-mapping
-m
No
Default: Read from preferences
Multiple values allowed: No
Specifies the folder location where the mapping file is to found.
-mappingdir d:\work\packages\mappings
-validate
-v
No
Default: N/A
Multiple values allowed: No
Validates the package against target PLM system without attempting import and is used with the -package argument.
-package d:\work\packages\test.wpc -validate
-resolution
-s
No.
Default: N/A
Multiple values allowed: No
Specifies the full path to the conflict resolution file used as input.
-resolution d:\data\conflicts\test.csv
-user
-u
Yes
Default: N/A
Multiple values allowed: No
The user name of the PLM system being connected to.
-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
The user password of the PLM system being connected to.
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 is masked.
-password <name>
-output
-t
No
Default: Startup directory, unless specified in preferences.
Multiple values allowed: No
Specifies the location for the HTML page to be stored.
Name of the output is assigned by Creo Packages.
-output d:\work\packages
If the directory does not exist, create one.
Master Synchronization Package for Object Owner Transfer
The arguments in the following table are common to the WPCImport command used in a master synchronization package for an object ownership transfer:
Argument (long format)
Argument (short format)
Required
Values
Description
-resultPackage
-y
No
N/A
Multiple values allowed: No
Specifies where the resulted master synchronization package is created.
If this argument is not specified, one is created in the startup directory.
-resultPackage d:\data\WPC\ownership
-baselinefolder
-a
No
Default: Value specified in preferences
Multiple values allowed: No
Where baseline will be created if the import succeeds.
If no value is specified in preferences, baseline is not created.
-baselinefolder “ORG1/Library/PTC Library\baselines”
-resultBaselineFolder
-a
No
Default: The one specified in preferences if any. If not, the import fails.
Multiple values allowed: No
Specifies where the baseline is created upon successful import.
-resultbaselinefolder “ORG1/Library/PTC Library\baselines”
-noresultBaseline
-S
No
N/A
Multiple values allowed: No
If this argument is specified, the resulting baselines after the ownership transfer package is created is ignored.
-preference
-e
No
Default: from load point wpc_preferences.txt
Multiple values allowed: No
Specifies the full path to the preferences file when the default path is not used. (Optional)
If wpc_preferences.txt. doesn't exist, the default value is your system default value.
-folder
-f
No
Default: Specified in preferences
Multiple values allowed: No
Specifies where objects are imported. The origin of the object does not affect its destination.
This option is honored for new objects only. Any existing objects follow the location for existing objects.
-folder PTCORG\Product/Product1\Foreign
-package
-g
No.
Default: Location specified in preferences, unless user enters -preview option
Multiple values allowed: No
Specifies the exact location of the package and the package name, when importing a package.
The package name may or may not contain an extension.
-package d:\cwp\packages\test
-preview
-v
No
Default: N/A
Multiple values allowed: Yes
Used to pre-generate the list of objects to be exported.
-help
-h
No
Default: N/A
Use to access command line help.
-mapping
-m
No
Default: Read from preferences
Multiple values allowed: No
Specifies the folder location where the mapping file is to found.
-mappingdir d:\work\packages\mappings
-validate
-v
No
Default: N/A
Multiple values allowed: No
Validates the package against target PLM system without attempting import and is used with the -package argument.
-package d:\work\packages\test.wpc -validate
-resolution
-s
No.
Default: N/A
Multiple values allowed: No
Specifies the full path to the conflict resolution file used as input.
-resolution d:\data\conflicts\test.csv
-user
-u
Yes
Default: N/A
Multiple values allowed: No
The user name of the PLM system being connected to.
-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
The user password of the PLM system being connected to.
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 is masked.
-password <name>
-output
-t
No
Default: Startup directory, unless specified in preferences.
Multiple values allowed: No
Specifies the location for the HTML page to be stored.
If the directory does not exist, create one.
Name of the output is assigned by Creo Packages.
-output d:\work\packages