Category Mechanism Design, Object ProSnapshot

Function ProSnapshotConstraintsGet


Description
brings all constraints from a snapshot.
Synopsis
#include <ProKinDrag.h>
ProErrorProSnapshotConstraintsGet(
const ProName snap_name
/* (In)
Name of the snapshot.
*/
const ProAsmcomppath* path
/* (In)
ProAsmcomppath of snapshot. NULL can be passed for top level.
*/
ProSnapshotConstraint** constraints
/* (Out)
The array of snapshot constraints. The function allocates the memory for this argument. To free the memory, call ProSelectionarrayFree() for sel_array in each constraint and then ProArrayFree() for the constraints.
*/
)
Returns
PRO_TK_NO_ERRORThe function was successful.
PRO_TK_E_NOT_FOUNDThe snapshot with specified name is not found.
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

Sample Code References:

  1. pt_examples ( TestDrag.c )
  2. pt_examples ( TestDrag.c )