Description | |||||||||||||||||
Copies a file from local disk to a Windchill workspace; either as a primary document or as secondary content of an existing document in the workspace.
NOTE: The config option "dm_upload_objects" can cause an upload after each save. |
|||||||||||||||||
Replacement in Object TOOLKIT: | pfcBaseSession::CopyFileToWS | ||||||||||||||||
Synopsis | |||||||||||||||||
#include <ProUtil.h> | |||||||||||||||||
ProError | ProFileCopyToWS | ( | |||||||||||||||
ProPath source_file | |||||||||||||||||
/* (In) | |||||||||||||||||
The path to the file, provided by functions such as ProFileMdlnameOpen() and ProFileMdlfiletypeOpen(). | |||||||||||||||||
*/ | |||||||||||||||||
ProPath target_workspace | |||||||||||||||||
/* (In) | |||||||||||||||||
The destination workspace. | |||||||||||||||||
*/ | |||||||||||||||||
ProPath primary_content | |||||||||||||||||
/* (In) | |||||||||||||||||
The document which the copy will be attached to, "box7.prt" for example. Pass NULL to simply copy the file to the workspace. | |||||||||||||||||
*/ | |||||||||||||||||
) | |||||||||||||||||
Returns | |||||||||||||||||
|