ANSYS: Change working directory while executing a macro
ANSYS: Change working directory while executing a macro
(OP)
Hi all,
I have a macro which creates a new folder in the current working directory while running it. Now I what I want to do is, as soon as the macro creates the new folder in the working directory, all the further files including .db and .rst should be saved to this new folder. I tried the save command but it is not working.
Any help is appreciated.
Thanks.
I have a macro which creates a new folder in the current working directory while running it. Now I what I want to do is, as soon as the macro creates the new folder in the working directory, all the further files including .db and .rst should be saved to this new folder. I tried the save command but it is not working.
Any help is appreciated.
Thanks.





RE: ANSYS: Change working directory while executing a macro
Are you using the "SAVE" -command? Are you specifying the directory in the third argument to that function call? I've sometimes experienced that the OS is not fast enough so that the newly created dir is not available. Try issuing a "/WAIT,.25" before saving.
Hope this helps
/petb