*lastsimulation

Sets the last simulation and data type for transient animations.

Syntax

*lastsimulation simulation data_type

Type

HyperMesh Tcl Modify Command

Description

Sets the last simulation and data type for transient animations. The results file must be loaded before executing this command.

Inputs

simulation
The name of the simulation contained in the results file.
data_type
The name of the data type for the simulation.

Example

To load the result file named C:/my_results/test.res and generate a rendered animation for Subcase 1 through Subcase 4 with Displacements data type, using a 10.0 model unit scaling:

*analysisfileset C:/my_results/test.res
*inputsimulation "Subcase 1" "Displacements"
*lastsimulation "Subcase 4" "Displacements"
*animatetransient "" 10.0 4 1 0
*freesimulation

Errors

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