Category Windchill servers, Object ProServer

Function ProServerWorkspaceSet


Description
Sets the workspace to use for a given server.
Replacement in Object TOOLKIT: pfcServer::ActiveWorkspace
Synopsis
#include <ProWTUtils.h>
ProErrorProServerWorkspaceSet(
wchar_t* alias
/* (In)
The name used by Creo Parametric to refer to this server.
*/
wchar_t* workspace
/* (In)
The name of the workspace to use.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more inputs was invalid.
PRO_TK_E_NOT_FOUNDThe server was not registered.
PRO_TK_INVALID_DIRThe workspace couldn't be found or created.
PRO_TK_E_FOUNDThe workspace is already set.
PRO_TK_GENERAL_ERRORIf any other error occures.

Manual References:

  1. Data Management: Windchill Operations: Creating and Modifying the Workspace
  2. Data Management: Windchill Operations: Creating and Modifying the Workspace

Sample Code References:

  1. pt_wc_server ( PTWCServerUtils.c )
  2. pt_wc_server ( PTWCServerUtils.c )