Category Windchill servers, Object ProServer

Function ProServerObjectsUpload


Description
Uploads an object to the database.

NOTE: The model must be saved with ProMdlSave() prior to upload.

NOTE: This function requires the object to be retrieved into memory; to upload all files in the workspace use ProServerObjectsCheckin() with the option ProServercheckinoptsUploadonlySet() as PRO_B_TRUE.

Replacement in Object TOOLKIT: pfcServer::UploadObjects
Synopsis
#include <ProWTUtils.h>
ProErrorProServerObjectsUpload(
ProMdl mdl
/* (In)
The top level model to upload.
*/
ProServerUploadConflicts* conflicts
/* (Out)
Information about upload conflicts. NULL if the error return != PRO_TK_CHECKOUT_CONFLICT. Pass NULL if not interested in conflicts details.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more inputs was invalid.
PRO_TK_E_NOT_FOUNDThe top level object was not found.
PRO_TK_BAD_CONTEXTThe primary server is not set.
PRO_TK_CHECKOUT_CONFLICTConflicts occurred. Check the details in the conflicts return.
PRO_TK_NOT_VALIDUpload called for an unsaved object. Please save and then Upload.

Manual References:

  1. Data Management: Windchill Operations: Upload
  2. Data Management: Windchill Operations: Conflicts During Server Operations