Category Assembly, Object ProAsmcomp

Function ProAsmcompConstraintsSet


Description
sets an array of constraints for a given Assembly component. This function modifies the component feature data and regenerates the assembly component.
Replacement in Object TOOLKIT: pfcComponentFeat::SetConstraints
Synopsis
#include <ProAsmcomp.h>
ProErrorProAsmcompConstraintsSet(
ProAsmcomppath* component_path
/* (In)
The path to the owner assembly, if the contstraints have references to other members of the top level assembly. If the constraints are only with respect to the assembly owner in component, this should be NULL.
*/
ProAsmcomp* component
/* (In)
The assembly component
*/
ProAsmcompconstraint* p_constraints
/* (In)
ProArray of constraints
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the information.
PRO_TK_BAD_INPUTSThe input is invalid.
PRO_TK_INVALID_TYPEThe component argument is not a valid assembly component.
PRO_TK_INVALID_PTRThe p_constraints array is not a valid ProArray.
PRO_TK_GENERAL_ERRORRegeneration using the specified constraints failed; the component reverted to the previous configuration.
See Also
ProWindowRepaint
ProTreetoolRefresh

Manual References:

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

Sample Code References:

  1. pt_userguide ( UgAsmcompConstraint.c )
  2. pt_userguide ( UgAsmcompConstraint.c )