How to change an exporting file name without manual interference?
Manjunath0711
Altair Community Member
Hi,
I am a beginner in using Hyperworks. I have made a .tcl script for topology optimization in optistruct and it works well. But the problem is whenever I run it more than once I need to keep changing the output file name or overwrite it. Is there any way to change the file name automatically like XXX_1 to XXX_2 and so on each time I run the script ?
TIA
0
Answers
-
I dont know if this works inside hypermesh, but you can check if the file already exists, and if it does you change its name:
file exists - Checks for the existence of a file.
0 -
Thanks, Will try that.
0