Upload
An upload transfers Creo Parametric files and any other dependencies from the local workspace cache to the server-side workspace.
Methods Introduced:
The method pfcServer.UploadObjects() uploads the object to the workspace. The object to be uploaded must be present in the current Creo Parametric session. You must save the object to the workspace using pfcModel.Save()pfcBaseSession.ImportToCurrentWS before attempting to upload it.
The method pfcServer.UploadObjectsWithOptions() uploads objects to the workspace using the options specified in the pfcUploadOptions class. These options allow you to upload the entire workspace, auto-resolve missing references, and indicate the target folder location for the new content during the upload. You must save the object to the workspace using pfcModel.Save(), or import it to the workspace using pfcBaseSession.ImportToCurrentWS() before attempting to upload it.
Create the pfcUploadOptions object using the method pfcUploadOptions.Create().
The methods available for setting the upload options are described in the following section.
Was this helpful?