Category Mechanica, Object ProMechconstr

Function ProMechconstrConstrsetsGet


Description
Obtains the ConstraintSet id's for the given constraint.
Licensing Requirement
TOOLKIT for Mechanica
Synopsis
#include <ProMechConstraint.h>
ProErrorProMechconstrConstrsetsGet(
ProMechItem* item
/* (In)
The constraint.
*/
int** pp_constr_ids
/* (Out)
ProArray of Constraintset id's corresponding to the constraint. The function allocates memory for this argument. Use ProArrayFree() to free it.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments are invalid.
PRO_TK_BAD_CONTEXTCreo Simulate session is not initialized.
PRO_TK_E_NOT_FOUNDThe constraint is not associated with any constraintset
PRO_TK_OUT_OF_MEMORYNot enough memory to allocate data.
PRO_TK_GENERAL_ERRORA general error was encountered.

Manual References:

  1. Creo Simulate: Items: Accessing the Creo Simulate Constraints

Sample Code References:

  1. pt_mech_examples ( PTMechExUtils.c )