my other solution works but not always. it's simple while loop to copy the contents of one file and paste it in the file of adjust function this works for a few rounds and then stops why does this happen? it's a very simple copy-and-paste operation? what is wrong with the compiler of Ansys. Please let me know how to fix it.