*setqualitythresholdscolors

Sets the color for all element quality index ranges.

Syntax

*setqualitythresholdscolors double_array number_of_doubles

Type

HyperMesh Tcl Modify

Description

This command is related to the element quality view mode. It sets the color for all element quality index ranges.

Inputs

double_array
The ID of the double array containing the color values for each quality index range. Must always be set to 1.
There are currently 5 quality index ranges that can be set. The color for each range must be specified, using a value of 1-64. The order of the parameters is:
  • 0 - Ideal (ideal <= QI < good)
  • 1 - Good (good <= QI < warn)
  • 2 - Warn (warn <= QI < fail)
  • 3 - Fail (fail <= QI < worst)
  • 4 - Worst (worst <= QI)
number_of_doubles
Must currently be set to 5.

Example

To assign the quality index thresholds colors: ideal 56 (green), good 41 (cyan), warn 28 (brown), fail 57 (yellow) and worst 3 (red):

*createdoublearray 5 56 41 28 57 3
*setqualitythresholdscolors 1 5

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

12.0.110