Category Assembly, Object ProAsmcomp

Function ProAsmcompConstrRemove


Description
Removes a component constraint, given a handle to the assembly component and the index of the constraint to remove. Intrfc constraint remains intact since main intrfc plin couldn't be removed whence all plins will be restored upon regen.
Replacement in Object TOOLKIT: wfcWComponentFeat::RemoveConstraint
Synopsis
#include <ProAsmcomp.h>
ProErrorProAsmcompConstrRemove(
ProAsmcomp* p_feat_handle
/* (In)
The handle to the assembly component.
*/
int index
/* (In)
The index of component to be removed. Indexing begins with 0 and continues to (number of constraints-1). An index of -1 removes all the constraints.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully removed the constraint.
PRO_TK_BAD_INPUTSThe specified feature is not a valid component feature.
PRO_TK_E_NOT_FOUNDThe specified constraint does not exist.

Manual References:

  1. Assembly: Assembling Components: Assembling Components by Functions
  2. Assembly: Assembling Components: Assembling Components by Functions

Sample Code References:

  1. pt_examples ( TestAsm.c )