Category View manager, Object ProSimprepdata

Function ProSimprepdataAlloc


Description
Allocates a ProSimprepdata structure.

NOTE:

Operates on assemblies only, not parts.

Replacement in Object TOOLKIT: pfcSimpRep::SetInstructions
Synopsis
#include <ProSimprepdata.h>
ProErrorProSimprepdataAlloc(
ProName name
/* (In)
The name of the simplified representation.
*/
ProBoolean temp
/* (In)
Set this to PRO_B_TRUE if the representation is temporary. Otherwise, set this to PRO_B_FALSE.
*/
ProSimprepActionType deflt
/* (In)
The default action to be applied to the items (PRO_SIMP_INCLUDE or PRO_SIMPREP_EXCLUDE).
*/
ProSimprepdata** p_result
/* (Out)
The pointer to the allocated structure. To free the memory, call ProSimprepdataFree().
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully allocated the structure.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
See Also
ProSimprepdataFree

Manual References:

  1. Assembly: Simplified Representations: Creating and Deleting Simplified Representations
  2. Assembly: Simplified Representations: Creating and Deleting Simplified Representations

Sample Code References:

  1. pt_examples ( TestSimpRep.c )
  2. pt_userguide ( UgSimprepCreate.c )