*mechplanetranslatebody

Moves a body of a mechanism from a source point to a target point using rotation angles.

Syntax

*mechplanetranslatebody name sx sy sz tx ty tz rx ry rz 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.
rx
The x-direction rotation angle.
ry
The y-direction rotation angle.
rz
The z-direction rotation angle.
tolerance
The tolerance allowed during the placement.

Example

To move body Seat_Cushion from (-1447.3297618988, 263.83727318711, 562.87391867592) to (-1400.3297618988, 263.83727318711, 562.87391867592) with tolerance 0.001, with no rotation angles:

*mechplanetranslatebody "Seat_Cushion" -1447.3297618988 263.83727318711 562.87391867592 -1400.3297618988 263.83727318711 562.87391867592 0 0 0 0.001

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

14.0.120