*morphtranslateshapemark
Translates shapes to specified node positions and applies them only to the nodes on the mark.
Syntax
*morphtranslateshapemark s_entity_type s_mark_id n_entity_type n_mark_id a_entity_type a_mark_id base_node_id mode tol con
Type
HyperMesh Tcl Modify
Description
This command will translate each shape on the mark by a vector measured from the basenode to each node on n_mark_id and affect only the nodes on a_mark_id. The shapes may be applied to the mesh, created as new shapes, added to existing shapes, or may replace existing shapes.
Inputs
- s_entity_type
- Must be set to shapes.
- s_mark_id
- The mark ID of the shapes. Valid values are 1 and 2.
- n_entity_type
- Must be set to nodes.
- n_mark_id
- The mark ID for the translate final position nodes. Valid values are 1 and 2.
- a_entity_type
- Must be set to nodes.
- a_mark_id
- The mark ID for target nodes. Valid values are 1 and 2.
- base_node_id
- ID of the base node for translate initial positions.
- mode
- 0 – Apply each shape to the mesh
- tol
- The "envelope" or distance around the translated shape inside which nodes are affected.
- con
- 0 – Do not use constraints
Examples
To translate a shape from one node to another and apply it to the mesh:
*createmark shapes 1 1
*createmark nodes 1 12
*createmark nodes 2 "all"
*morphtranslateshapemark shapes 1 nodes 1 nodes 2 11 0 3.0 1
To translate all shapes from one node to another and create new shapes, but only on selected nodes:
*createmark shapes 1 "all"
*createmark nodes 1 12
*createmark nodes 2 1 2 3 4 5 6 7 8 9 10 11 12
*morphtranslateshapemark shapes 1 nodes 1 nodes 2 11 4 3.0 1
Errors
Incorrect usage of *morphtranslateshapemark results in a Tcl error. To detect errors, you
can use the catch
command:
if { [ catch {*morphtranslateshapemark shapes 1 nodes 1 nodes 2 11 0 3.0 1} ] } {
# Handle error
}
Version History
10.0