Documentação da API > Mechanism Design > Object ProSnapshot > Function ProSnapshotConstraintUpdate
Function ProSnapshotConstraintUpdate
Description
updates a constraint in a snapshot. Available for top level snapshot only.
Synopsis
#include <ProKinDrag.h>
ProSnapshotConstraintUpdate
(
const ProName snap_name
/* (In)
Name of the snapshot.
*/
const int ndx
/* (In)
Index of the constraint from the constraints array (as brought by ProSnapshotConstraintsGet() to be updated.
*/
const ProSnapshotConstraint* constraint
/* (In)
Pointer to the new constraint to be used instead of the old one. The field constraint->valid is ignored.
*/
)
Returns
The function was successful.
The snapshot with specified name is not found.
The specified index is wrong.
The similar constraint exists in the snapshot.
The constraint->value is out of range.
The function failed.
User Guide References
Isto foi útil?