*mechcontructfromedi

Creates objects needed for solving enabled mechanisms.

Syntax

*mechcontructfromedi mode param

Type

HyperMesh Tcl Modify

Description

Creates objects needed for solving enabled mechanisms, such as applying positions or moving bodies.

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

Inputs

mode
The mode for mechanism operations:
0 - Move
2 - Apply position
position
The position ID to use when mode is 2.

Examples

To setup mechanism with ID 1:

*mechcontructfromedi 0 0

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

*mechcontructfromedi 2 3
*mechapplyediposition 1 0

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