*replacenodes

Replaces or moves a node with another node.

Syntax

*replacenodes node1_id node2_id mode location

Type

HyperMesh Tcl Modify Command

Description

This command replaces or moves a node with another node.

Inputs

node1_id
The ID of the first node.
node2_id
The ID of the second node.
mode
0 - Move but do not replace.
1 - Move and replace.
location
0 - Move node1 to node2.
1 - Move node1 and node2 to their midpoint.

Example

To move node 20 to node 200 without replacing:

*replacenodes 20 200 0 0

To move node 20 to node 200 with replacing:

*replacenodes 20 200 1 0

To move node 20 and node 200 to their midpoint with replacing:

*replacenodes 20 200 1 1

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}