Category Windchill servers, Object ProCurrent

Function ProCurrentWorkspaceExport


Description
Export specified objects from the current workspace to a disk in a linked session of Creo Parametric. Can be called only when there are no objects in session (see error status descriptions). The specified objects may be exported along with all or required by Creo Parametric dependents (recursively), according to a specified dependency criterion. All problems (warnings, conflicts or errors) of processing individual objects are logged in proimpex.errors file created in the Creo Parametric run directory. In addition, warnings and information messages are logged in proimpex.log file.
Replacement in Object TOOLKIT: pfcBaseSession::ExportFromCurrentWS
Synopsis
#include <ProWorkspace.h>
ProErrorProCurrentWorkspaceExport(
ProWorkspaceImpExDepCriterion dep_criterion
/* (In)
the dependency criterion,
*/
wchar_t** source_objects
/* (In)
a ProArray of names of objects to export,
*/
ProPath target_path
/* (In)
the export target directory.
*/
)
Returns
PRO_TK_NO_ERRORall the specified objects and their specified dependents have been processed; proimpex.errors still to be checked for possible problems with individual objects
PRO_TK_BAD_INPUTSone or more arguments was invalid
PRO_TK_E_BUSYcannot export because there are objects in Creo Parametric session
PRO_TK_E_NOT_FOUNDno workspace registered as current (or non linked session)
PRO_TK_INVALID_DIRbad or inaccessible target_path
PRO_TK_GENERAL_ERRORan error caused the entire operation to fail.

Manual References:

  1. Data Management: Windchill Operations: Import and Export
  2. Data Management: Windchill Operations: Import and Export
  3. Data Management: Windchill Operations: File Copy