*mechapplyediposition

Applies a position to a mechanism.

Syntax

*mechapplyediposition mode run_solver

Type

HyperMesh Tcl Modify Command

Description

Applies a position to a mechanism. This will be always used in conjunction with *mechcontructfromedi.

The mechanism must have the enabled flag set to true for this to be possible.

Inputs

mode
The mode for the position:
0 - Initial position
1 - Active position
run_solver
0 - Directly apply the position to bodies without considering constraints and joints.
1 - Run the solver to apply the position along with constraints and joints.

Examples

To apply position with ID 3 on mechanism with ID 1:

*mechconstructfromedi 2 3
*mechapplyediposition 1 0

To apply the initial position on a mechanism:

To apply the initial position on a mechanism:

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