*deformedshape

Creates a deformed shape plot from results data.

Syntax

*deformedshape title undeformed_color deformed_color scale_factor hidden_line full_size

Type

HyperMesh Tcl Modify Command

Description

Creates a deformed shape plot from results data. The results file must be loaded before executing this command. The *freesimulation command clears the plot.

Inputs

title
The title to use for the plot.
undeformed_color
The color used to plot the undeformed shape. Valid values are 1 through 64.
  • -1 - Uses the elements color.
  • 0 - Uses the background color.
A value of
deformed_color
The color used to plot the deformed shape. Valid values are 1 through 64.
  • -1 - Uses the elements color.
  • 0 - Uses the background color.
scale_factor
The maximum deflection in model units to which the results should be scaled.
hidden_line
This argument is no longer supported and is ignored.
full_size
Determines whether the deformed plot fills the entire screen. Valid values are:
  • 0 - Use normal size.
  • 1 - Use full screen. Press a mouse button to return.

Examples

To load the result file named C:/my_results/test.res and generate a deformed plot for Subcase 1 with Displacements data type, an undeformed mesh color of the elements, a deformed mesh color of red, and normal plot size
*analysisfileset C:/my_results/test.res
*inputsimulation "Subcase 1" "Displacements"
*deformedshape "" -1 3 1.0 0 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
}