Category Family table, Object ProFaminstance

Function ProFaminstanceCreate


DEPRECATED: Since Creo 3
SUPERSEDED BY: ProFaminstanceRetrieve
Description
Creates an instance model of the specified instance handle.

Note: if this succeeds, this also verifies the instance in the family table.

Note: This function is deprecated. Use ProFaminstanceRetrieve instead.

Replacement in Object TOOLKIT: pfcFamilyTableRow::CreateInstance
Synopsis
#include <ProFaminstance.h>
ProErrorProFaminstanceCreate(
ProFaminstance* proinst
/* (In)
The instance handle
*/
ProMdl* inst_model
/* (Out)
The handle to the instance model
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully created the instance model.
PRO_TK_E_NOT_FOUNDThe specified instance does not exist in the family table, or the specified model item is not table-driven.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.
PRO_TK_CANT_OPENCreo Parametric cannot regenerate the instance. The instance has been created but the failed features have been suppressed.

Manual References:

  1. Technical Summary of Changes for Creo 4.0 F000: Updates to Error Codes for ProFaminstanceAdd() and ProFaminstanceCreate()
  2. Technical Summary of Changes for Creo 4.0 F000: Family Table Instances

Sample Code References:

  1. pt_wc_server ( PTWCServerAddInstance.c )