Category Windchill servers, Object ProServer

Function ProServerWorkspaceGet


Description
Gets the workspace to use for a given server.
Replacement in Object TOOLKIT: pfcServer::ActiveWorkspace
Synopsis
#include <ProWTUtils.h>
ProErrorProServerWorkspaceGet(
wchar_t* alias
/* (In)
The name used by Creo Parametric to refer to this server.
*/
wchar_t** workspace
/* (Out)
The name of the workspace in use. Free this string using ProWstringFree().
*/
)
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_GENERAL_ERRORIf any other error occures.

Manual References:

  1. Technical Summary of Changes for Creo 11.0.0.0: Functions superseded from Creo 1.0 to Creo 11.0
  2. Data Management: Windchill Operations: Creating and Modifying the Workspace
  3. Data Management: Windchill Operations: Creating and Modifying the Workspace

Sample Code References:

  1. pt_wc_server ( PTWCServerPartToPView.c )
  2. pt_wc_server ( PTWCServerUpdateDXF.c )
  3. pt_wc_server ( PTWCServerUtils.c )