Category Mechanica, Object ProMechload

Function ProMechloadLoadsetAssign


Description
Associates load with given load set.
Licensing Requirement
TOOLKIT for Mechanica
Synopsis
#include <ProMechLoad.h>
ProErrorProMechloadLoadsetAssign(
ProMechItem* item
/* (In)
The load to be added.
*/
int loadsetid
/* (In)
Loadset id to which the load is to be added.
*/
ProBool unassign
/* (In)
PRO_B_TRUE : Removes the load from previous set (if any). PRO_B_FALSE : Does not remove the load 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_CONTEXTCreo Simulate session is not initialized.
PRO_TK_CANT_WRITESubtype cannot be changed.
PRO_TK_INVALID_PTRThe Input ProMechItem Solid pointer is invalid.
PRO_TK_GENERAL_ERRORA general error was encountered.
PRO_TK_CANT_MODIFYCannot modify the item.
PRO_TK_OUT_OF_MEMORYThere is not enough memory to perform the operation.

Manual References:

  1. Creo Simulate: Items: Modifying the Creo Simulate Loads
  2. Creo Simulate: Items: Modifying the Creo Simulate Loads
  3. Creo Simulate: Items: Creo Simulate Load Sets

Sample Code References:

  1. pt_mech_examples ( PTMechExUtils.c )