*alignnode2
Aligns a node along the imaginary line between two other nodes, using a ratio coefficient.
Syntax
*alignnode2 end_node1 end_node2 node ratio
Type
HyperMesh Tcl Modify
Description
Aligns a node along the imaginary line between two other nodes, using a ratio coefficient.
Inputs
- end_node1
- The first end node ID.
- end_node2
- The second end node ID.
- node
- The node ID to align.
- ratio
- The ratio that determines the alignment of node between end_node1
and end_node2.
- 0.5 - Aligns node in the middle and behaves exactly as *alignnode.
- 0 - Aligns node at the same location as end_node1.
- 1 - Aligns node at the same location as end_node2.
- Other values are linearly interpolated in between.
Examples
To align node 100 between nodes 200 and 300 using a ratio of 0.25:
*alignnode2 200 300 100 0.25
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
12.0.110