Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

ANSYS: Change working directory while executing a macro

Status
Not open for further replies.

koolraj

Mechanical
Dec 31, 2009
10
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.
 
Replies continue below

Recommended for you

Hi,

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor