Actually what i want to write in a file is following..
FK,1,FY,-280e3
FK,3,FZ,-210e3
FK,5,FX,-280e3
FK,6,FY,-360e3
in above the variables (for example in first line ) are
1,FY and -280e3
where 1 is corresponds to the node no (can be 1,2,3,...L)
FY corresponds to force in direction X ( can be FX, FY and FZ)
-280e3 is the value of load
and FK is the general term i included in the line to imply Force at key
point.
so what i want is that
user will enter values of these three varriables by himself.
and user can enter values for different nodes as well.
i want to prompt user like...
enter force load to keypoints like(n,FY,-280e3),where n is the node no.:
then he enters the value
now these value will be written in the file as i shown above (FK,1,FY,-
280e3)
put this prompt method in a loop to allow user to enter multiple values, so
that i can print next set of values in my file as i shown in my file.
also one more thing i have written keypoints in my text file initially as
shown below
K, 1,4578.2531,7919.0487
K, 2,11346.8678,11826.9102
K, 3,11346.8678,3072.2707
K, 4,4578.2531,3072.2707
K, 5,11346.8678,7919.0487
K, 6,4578.2531,11826.9102
so we have max no. of keypoints (nodes) as 6. so user can enter force at
keypoints max upto 6 times. this is just a example there can be more no of
nodes in the structure as well.
i think now problem statement is more clear, if still u have any difficulty
in understanding the problem, please post.
please sort out my problem, its urgent..i have less time
thanks
nsdhakar