Category Mechanism Design, Object ProSnapshot

Function ProSnapshotConstraintAdd


Description
adds a constraint to a snapshot. Available for top level snapshot only.
Synopsis
#include <ProKinDrag.h>
ProErrorProSnapshotConstraintAdd(
const ProName snap_name
/* (In)
Name of the snapshot.
*/
const ProSnapshotConstraint* constraint
/* (In)
Pointer of the constraint to be added. The field constraint->valid is ignored.
*/
)
Returns
PRO_TK_NO_ERRORThe function was successful.
PRO_TK_E_NOT_FOUNDThe snapshot with specified name is not found.
PRO_TK_E_FOUNDThe similar constraint exists in the snapshot.
PRO_TK_OUT_OF_RANGEThe constraint->value is out of range.
PRO_TK_GENERAL_ERRORThe function failed.

Manual References:

  1. Assembly: Kinematic Dragging and Creating Snapshots: Snapshot Constraints
  2. Assembly: Kinematic Dragging and Creating Snapshots: Snapshot Constraints