API Documentation > Creo Parametric fundamentals > Object ProFile > Function ProFileCopyFromWSDocument
Function ProFileCopyFromWSDocument
Description
Copies a file, either primary or secondary, from a Windchill workspace to a disk location.
Synopsis
#include <ProUtil.h>
ProFileCopyFromWSDocument
(
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
The function succeeded.
One or more inputs was invalid.
The input file was not found or improper.
The output location was not found.
No permission to read the input file, or to write to the target directory.
User Guide References
Was this helpful?