Category Mechanica, Object ProMechconstr

Function ProMechconstrConstrsetAssign


Description
Associates constraint with given constraint set.
Licensing Requirement
TOOLKIT for Mechanica
Synopsis
#include <ProMechConstraint.h>
ProErrorProMechconstrConstrsetAssign(
ProMechItem* item
/* (In)
The constraint to be added.
*/
int constrsetid
/* (In)
Constraintset id to which the constraint is to be added.
*/
ProBool unassign
/* (In)
PRO_B_TRUE : Removes the constraint from previous set(if any). PRO_B_FALSE : Does not remove the constraint from previous set. Currently PRO_B_FALSE is not supported.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments are invalid.
PRO_TK_BAD_CONTEXTThe Creo Simulate session is not initialized.
PRO_TK_INVALID_PTRThe Input ProMechItem Solid pointer is invalid.
PRO_TK_CANT_WRITESubtype cannot be changed.

Manual References:

  1. Creo Simulate: Items: Modifying the Creo Simulate Constraints
  2. Creo Simulate: Items: Modifying the Creo Simulate Constraints
  3. Creo Simulate: Items: Creo Simulate Constraint Sets

Sample Code References:

  1. pt_mech_examples ( PTMechExUtils.c )