Category 3D interface, Object ProATB

Function ProATBRelink


Description
Relink the model/feature that have lost the link to the master model. Relinking a model here will represent searching for the master model (using the master model name) in the location specified in the 'master_model_path' arguement. If the master model with the same name is found, the Creo Parametric TIM model is linked to that master model.
Replacement in Object TOOLKIT: wfcWModel::RelinkATB
Synopsis
#include <ProATB.h>
ProErrorProATBRelink(
ProMdl model
/* (In)
Creo Parametric Part or Assembly that is a) A TIM representation of a model imported from the ATB interface such as CADDS/CATIA b) A Creo Parametric Assembly containing one or more components which are model imported from an ATB Interface such as CADDS/CATIA c) A Creo Parametric Part containing an Import Feature that is imported from an ATB Interface such as ICEM.
*/
int feat_id
/* (In)
Indicates a ABT-Enabled feature in the model. In that case, the ATB Relink operation will only work on the Feature specified. If PRO_VALUE_UNUSED, then the function will attempt to relink the entire model (TIM from CADDS/CATIA).
*/
ProPath master_model_path
/* (In)
ProPath indicating the fully qualified path to the new master model to be relinked.
*/
)
Returns
PRO_TK_NO_ERRORThe function run successfully.
PRO_TK_BAD_INPUTSThe function could not run, since one or more REQUIRED inputs were missing or incorrect.
PRO_TK_UNSUPPORTEDThe input model is Multi-CAD model.

Manual References:

  1. Interface: Importing Features: Associative Topology Bus Enabled Models and Features