Inputting a table of node coordinates into HyperMesh
Hello,
I am a beginner with HyperMesh and would like to know if there is a way for a user to input a table of node coordinates into HyperMesh instead of having to manually input each coordinate. Manually inputting each X, Y, and Z coordinate is time-consuming, so a shortcut would be great. Here is an example of what the node table looks like.
Node Identifier | X | Y | Z |
A | 0 | 0 | 0 |
B | 0.1143 | 0 | 0 |
C | 0.1143 | 0.1905 | 0 |
D | 0.3048 | 0.1905 | 0 |
E | 0.3048 | 0.3048 | 0 |
F | 0 | 0.3048 | 0 |
G | 0 | 0 | 0.381 |
H | 0.1143 | 0 | 0.381 |
I | 0.3048 | 0 | 0.381 |
J | 0.3048 | 0.1905 | 0.381 |
K | 0.3048 | 0.3048 | 0.381 |
L | 0 | 0.3048 | 0.381 |
M | 0.1143 | 0.1905 | 0.381 |
N | 0 | 0 | 1.524 |
O | 0.3048 | 0 | 1.524 |
P | 0.3048 | 0.3048 | 1.524 |
Q | 0 | 0.3048 | 1.524 |
Thank you very much for your help!
Answers
-
Here's a very simple TCL script:
set coordinates { 0 0 0 \ 0.1143 0 0 \ 0.1143 0.1905 0 \ 0.3048 0.1905 0 \ 0.3048 0.3048 0 \ 0 0.3048 0 \ 0 0 0.381 \ 0.1143 0 0.381 \ 0.3048 0 0.381 \ 0.3048 0.1905 0.381 } foreach {x y z} $coordinates { *createnode $x $y $z 0 0 0; }
0