Function ProFileCopyToWS
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:
Synopsis
#include <ProUtil.h>
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
The function succeeded.
One or more inputs was invalid.
An input file was not found or improper.
There was a problem setting primary_content.
The workspace file is not writable.
Sample Code References
User Guide References
도움이 되셨나요?