Category View manager, Object ProSimprepdata

Function ProSubstitutionInit


Description
Initializes a ProSubstitution structure.

NOTE:

Operates on assemblies only, not parts.

Replacement in Object TOOLKIT: pfcSimpRep::SetInstructions
Synopsis
#include <ProSimprepdata.h>
ProErrorProSubstitutionInit(
ProSubstType type
/* (In)
The type of substitution.
*/
int path_size
/* (In)
Set this to PRO_VALUE_UNUSED to specify substitution with a simplified representation.
*/
ProIdTable subst_path
/* (In)
The path to the substitution component.
*/
ProSimprep* p_simp_rep
/* (In)
The handle to the simplified representation (used with PRO_SUBST_PRT_REP or PRO_SUBST_ASM_REP).
*/
ProSubstitution* p_subst
/* (Out)
The initialized substitution data.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully initialized the structure.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.

Sample Code References:

  1. pt_examples ( TestSimpRep.c )