*recalculaterigidmainnode
Recalculates the location of the main node of rigid elements and constraints.
Syntax
*recalculaterigidmainnode mark_id entity_type
Type
HyperMesh Tcl Modify Command
Description
Computes the centroid of the secondary nodes of a rigid element or a constraint and places the main node at the centroid position.
Inputs
- mark_id
- The ID of the mark containing the rigid elements or constraints. Valid values are 1 and 2.
- entity_type
- The type of entity. Valid values are elements and constraints.
Examples
To recalculate the location of the main node of the rigid element ID
26:
*createmark elements 1 26
*recalculaterigidmainnode 1 elements
To recalculate the location of the main nodes of constraints “constraint1” and
“constraint2”:
*createmark constraints 1 "constraint1" "constraint2"
*recalculaterigidmainnode 1 constraints
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
2024.1