*mechplacebodytopoint
Moves a body of a mechanism from a source point to a target point.
Syntax
*mechplacebodytopoint name sx sy sz tx ty tz tolerance
Type
HyperMesh Tcl Modify Command
Description
Moves a body such that the source point on the body reaches the target point, while satisfying joints and constraints defined in the mechanism.
The mechanism must have the enabled flag set to true for this to be possible.
Inputs
- name
- The name of the body of the mechanism.
- sx
- The x-coordinate of the source point on the body.
- sy
- The y-coordinate of the source point on the body.
- sz
- The z-coordinate of the source point on the body.
- tx
- The x-coordinate of the target point.
- ty
- The y-coordinate of the target point.
- tz
- The z-coordinate of the target point.
- tolerance
- The tolerance allowed during the placement.
Example
To move body "LEFT LOWER LEG" on the enabled mechanism, with tolerance 0.001, with source-target point pair as (-129.289718, 83.6107788, -53.376587) and target point (-146.452326, 80.1099172, -12.7053014):
*mechplacebodytopoint "LEFT LOWER LEG" -129.289718 83.6107788 -53.376587 -146.452326 80.1099172 -12.7053014 0.001
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
14.0.120