I have a model into which I import a number of companion results. These are contained with a results file in the main simulation directory.
I would like to be able to copy the whole folder containing all parts of the simulation and results to another location and have it reference the companion results at the new location.
Is there a way to reference the current directory or run file directory like:
Solved! Go to Solution.
Thanks for your reply, Boris.
Should this work in journals? I tried reccording the import of a companion result, then inserted the line unvLoc = os.environ.get('PWD')
but instaed of returning a location, it returnes a null value.
"Current Directory" is not necessarily the directory where your .sim file is located.
If you have an instance of the CAE.SimPart, you can get it's directory from CAE.SimPart.FullPath()