Documentación de la API > Mechanism Design > Object ProSnapshot > Function ProSnapshotConstraintEvaluate
Function ProSnapshotConstraintEvaluate
Description
evaluate a constraint of type PRO_SNAP_MOTION_AXIS_POS for the model shown on screen. The function does not depend on the current snapshot, and it is not important whether the snapshot contains the constraint or not.
Synopsis
#include <ProKinDrag.h>
ProSnapshotConstraintEvaluate
(
const ProSnapshotConstraint* constraint
/* (In)
Pointer to the constraint of type PRO_SNAP_MOTION_AXIS_POS with sel_array field filled up before calling the function. The fields constraint->user_active and constraint->valid are ignored.
*/
double* position
/* (Out)
The current motion axis position.
*/
)
Returns
The function was successful.
The constraint is incorrect or it is not of type PRO_SNAP_MOTION_AXIS_POS.
The function failed.
Sample Code References
User Guide References
¿Fue esto útil?