Category Assembly, Object ProAsmcomp

Function ProAsmcompSubstituteGet


Description
If a component is substituted with a given simplified rep, then get the path and the handle of the substituted component.
Replacement in Object TOOLKIT: wfcWComponentPath::GetSubstituteComponent
Synopsis
#include <ProSimprep.h>
ProErrorProAsmcompSubstituteGet(
ProSimprep* p_simp_rep
/* (In)
The handle to the simplified representation.
*/
ProAsmcomppath* path_to_orig_comp
/* (In)
The component path, which is being substituted, including component id (may NOT be NULL).
*/
ProAsmcomppath* path_to_subst_comp
/* (Out)
Path to the substitute component, NOT including component.
*/
ProAsmcomp* substitute
/* (Out)
Handle to the substitute component.
*/
)
Returns
PRO_TK_NO_ERRORThe function works fine.
PRO_TK_BAD_INPUTSOne or more of the arguments are invalid.
PRO_TK_E_NOT_FOUNDThe component is not a substitute.

Manual References:

  1. Assembly: Simplified Representations: Extracting Information About Simplified Representations