Category Mechanica, Object ProMechconstr

Function ProMechconstrDisplacementdataSet


Description
Sets the handle to the displacement data from the Creo Simulate constraint.
Licensing Requirement
TOOLKIT for Mechanica
Synopsis
#include <ProMechConstraint.h>
ProErrorProMechconstrDisplacementdataSet(
ProMechItem* item
/* (In)
The constraint.
*/
ProMechDisplacementData value
/* (In)
The displacement 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 ProMechItem's owner solid is invalid.
PRO_TK_GENERAL_ERRORA general error was encountered.
PRO_TK_CANT_WRITESubtype cannot be changed.
PRO_TK_CANT_MODIFYUnable to Modify.

Manual References:

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

Sample Code References:

  1. pt_mech_examples ( PTMechExCopy.c )