DMU Kinematics Simulator |
Solving a Mechanism for a Command Set |
![]() |
This macro shows you how to retrieve motion for a moving part of a mechanism, after applying new command values. The macro assumes that a CATProduct has been loaded, with one mechanism having at least two commands. After running the macro, the moving part has been moved to its position with the new command values.
|
![]() |
CAAKiiMechanismSolve is launched in CATIA [1]. You need to previously open the provided document. CAAKiiMechanismSolve.CATScript is located in the CAAScdKiiUseCases module. Execute macro (Windows only).
|
![]() |
CAAKiiMechanismSolve includes five steps:
PrologSome variables are defined: dValcmd: array of double to contain the command values. dMotion: array of double to contain the part's motion as a 3x4 matrix. oRootProduct: it represents the root of the product graph. cTheMechanisms: it represents the mechanism collection for
this product. This collection is retrieved using the oFirstMechanism: it represents the first mechanism in the collection. Retrieve the number of moving parts, and the first oneThe number of parts in a mechanism is obtained through the The parts in a mechanism are obtained through the Retrieve the current command values for the mechanismThe current command values of a mechanism are obtained as an array of
double, through the The array to contain the command values must be declared with a
dimension equal to the Solve for other command valuesThe command values array can be changed to other values using standard operations. The
Retrieve motion after solving and apply itThe transformation for a moving part is obtained using the The transformation is a 3x4 matrix, coherent with expectations from the
|
[Top]
This use case has shown how to solve a mechanism, retrieve the motion for one part, and apply it. Specifically, it has illustrated how to :
You can derive a macro to apply the motion to all parts of a mechanism.However, solving a mechanism after applying motion to the parts is not supported in this release.
[Top]
[1] | Replaying a macro |
[2] | DMU Kinematics automation objects |
[Top]
DMU Navigator Home DMU Space Analysis Home DMU Kinematics Simulation Home
Copyright © 2001, Dassault Systèmes. All rights reserved.