Category Mechanica, Object ProMechload

Function ProMechloadForcedataSet


Description
Sets the value of the force data from the Creo Simulate item. If both force and moment directions are definded by vectors, the variation and coordinate system used in the force data will be used for the load; the variation and coordinate system used in the moment data will be ignored.
Licensing Requirement
TOOLKIT for Mechanica
Synopsis
#include <ProMechLoad.h>
ProErrorProMechloadForcedataSet(
ProMechItem* item
/* (In)
The item.
*/
ProMechForceData data
/* (In)
The force data.
*/
)
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_CANT_ACCESSCannot access the object in the current mode.
PRO_TK_INVALID_PTRThe Input ProMechItem Solid pointer is invalid.
PRO_TK_GENERAL_ERRORA general error was encountered.
PRO_TK_OUT_OF_MEMORYThere is not enough memory to perform the operation.
PRO_TK_CANT_WRITESubtype cannot be changed.
PRO_TK_CANT_MODIFYCannot modify the item.

Manual References:

  1. Creo Simulate: Items: Modifying the Creo Simulate Loads
  2. Creo Simulate: Items: Modifying the Creo Simulate Loads

Sample Code References:

  1. pt_mech_examples ( PTMechExLoadMenu.c )
  2. pt_mech_examples ( PTMechExMagChange.c )