Category Mechanism Design, Object ProSnapshot

Function ProSnapshotTrfsGet


Description
brings transformation paths and transformation matrices for all components in the snapshot versus top level assembly.
Synopsis
#include <ProKinDrag.h>
ProErrorProSnapshotTrfsGet(
const ProName snap_name
/* (In)
Name of the snapshot.
*/
const ProAsmcomppath* path
/* (In)
ProAsmcomppath of snapshot. NULL can be passed for top level snapshot.
*/
ProAsmcomppath** path_arr
/* (Out)
The array of ProAsmcomppath calculated from top assembly. The function allocates the memory for this argument. To free the memory, call ProArrayFree().
*/
ProMatrix** trf_arr
/* (Out)
The array of transformation matrices showing transformation from specified component to the top level assembly. The function allocates the memory for this argument. To free the memory, call ProArrayFree().
*/
)
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 Transforms
  2. Assembly: Kinematic Dragging and Creating Snapshots: Snapshot Transforms

Sample Code References:

  1. pt_examples ( TestDrag.c )