Category Creo Parametric fundamentals, Object ProFile

Function ProFileCopyFromWS


Description
Copies a file from a Windchill workspace to a disk location.
Replacement in Object TOOLKIT: pfcBaseSession::CopyFileFromWS
Synopsis
#include <ProUtil.h>
ProErrorProFileCopyFromWS(
ProPath source_file
/* (In)
The path to the file, provided by functions such as ProFileMdlnameOpen() and ProFileMdlfiletypeOpen(). This must begin with wtws://.
*/
ProPath target_directory
/* (In)
The location on the local disk indicating where to copy the file.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more inputs was invalid.
PRO_TK_INVALID_FILEThe input file was not found or improper.
PRO_TK_INVALID_DIRThe output location was not found.
PRO_TK_CANT_ACCESSNo permission to read the input file, or to write to the target directory.

Manual References:

  1. Data Management: Windchill Operations: File Copy
  2. Data Management: Windchill Operations: File Copy