Category Windchill servers, Object ProServer

Function ProServerObjectsRemove


Description
Removes a list of models from a workspace.
Replacement in Object TOOLKIT: pfcServer::RemoveObjects
Synopsis
#include <ProWTUtils.h>
ProErrorProServerObjectsRemove(
wchar_t** model_names
/* (In)
A ProArray of model names to remove. Pass NULL to remove all objects.
*/
ProServerRemoveConflicts* conflicts
/* (Out)
Information about remove conflicts NULL if the error return != PRO_TK_CHECKOUT_CONFLICT or PRO_TK_E_NOT_FOUND. Pass NULL if not interested in conflicts details.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more inputs was invalid.
PRO_TK_E_NOT_FOUNDOne or more documents are not found. Check the conflicts return.
PRO_TK_BAD_CONTEXTThe primary server is not set.
PRO_TK_CHECKOUT_CONFLICTConflicts occurred. Check the details in the conflicts output.

Manual References:

  1. Data Management: Windchill Operations: Delete Objects
  2. Data Management: Windchill Operations: Conflicts During Server Operations

Sample Code References:

  1. pt_wc_server ( PTWCServerUtils.c )