Category Creo Parametric fundamentals, Object ProFile

Function ProFileCopyFromWSDocument


Description
Copies a file, either primary or secondary, from a Windchill workspace to a disk location.
Synopsis
#include <ProUtil.h>
ProErrorProFileCopyFromWSDocument(
ProPath source_file
/* (In)
The path to the file, provided by functions such as ProFileMdlnameOpen() and ProFileMdlfiletypeOpen(). This must begin with wtws://.
*/
ProPath document_name
/* (In)
If present, the name of the document, with source_file being the name of the secondary content on the document. If NULL, read the primary content of source_file.
*/
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