in reply to Script fails to insert text and appends it towards the end of file.
It worked for me, but it inserted the block into line 12 (as $array11 refers to its 12th item i guess?):
'Node ID X Y Z BC NODE 1 4.51000 0.00000 79.00000 NODE 2 0.00000 0.00000 79.00000 NODE 3 0.00000 0.00000 78.27000 NODE 4 -1.88000 0.00000 78.27000 NODE 5 0.00000 0.00000 76.80000 NODE 6 0.00000 0.00000 74.46000 NODE 7 0.00000 0.00000 71.66000 NODE 8 0.00000 0.00000 68.86000 NODE 9 0.00000 0.00000 66.07000 NODE 32 0.00000 0.00000 -1.90000 NODE 33 0.00000 0.00000 -5.50000 NODE 34 0.00000 0.00000 -9.00000 NODE 35 0.00000 0.00000 -15.00000 NODE 36 0.00000 0.00000 -18.90000 NODE 37 0.00000 0.00000 -22.40000 NODE 38 0.00000 0.00000 -25.90000 NODE 39 0.00000 0.00000 -29.00000 NODE 40 0.00000 0.00000 -32.50000 NODE 41 0.00000 0.00000 -33.90000 NODE 42 0.00000 0.00000 -62.90000 'Elem ID np1 np2 material geom lcoor ecc1 BEAM 1 2 1 2 36 2 BEAM 2 3 2 2 36 1 BEAM 3 3 4 2 36 2 BEAM 4 5 3 2 36 1 BEAM 5 6 5 3 35 1 BEAM 6 7 6 3 34 1 PIPE 19 4.489 0.022 PIPE 20 4.488 0.021 PIPE 21 4.487 0.020 PIPE 22 4.395 0.018 PIPE 23 4.351 0.018 PIPE 24 4.261 0.017
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Script fails to insert text and appends it towards the end of file.
by always_coys (Novice) on Nov 21, 2020 at 14:54 UTC |