*control_sum_3
Outputs the sum of the coordinates of all elements (center or nodes) in the model.
Syntax
*control_sum_3 file comment mode
Type
HyperMesh Tcl Modify
Description
Outputs the sum of the coordinates of all surface vertices in the model. This also includes the sum of the coordinates of a point inside every surface.
Inputs
- file
- The full path and file name to write the result to.
- comment
- A text comment to add to the result file. Should be enclosed in double quotes "".
- mode
- The mode to calculate the sum. Valid values are:
- 0 - Use element centers.
- 1 - Use element nodes.
Examples
To output the control sum to
C:/control_sum_2.txt:
*control_sum_3 C:/control_sum_3.txt "" 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