Permission denied running optistruct.bat from command prompt
Hello,
I am trying to run optistruct from the command line in MATLAB. I have been able to run it using the line;
system(''C:\Program Files\Altair\2017\hwsolvers\common\tcl\tcl8.5.9\win64\bin\wish85t_os.exe' 'C:\Program Files\Altair\2017\hwsolvers\scripts\hwsolver.tcl' -solver OS -icon 'C:\Users\e-tru\Documents\beam_maker_altair_44.fem'')
But I also want to be able to output the element densities and .sh file after an optimization and have been unable to do so. I have tried invoking optistuct.bat to see if that would help me and used the line;
system(''C:\\Program Files\\Altair\\2017\\hwsolvers\\scripts\\optistruct.bat' 'C:\Users\e-tru\Documents\beam_maker_altair_44.fem'')
Unfortunately it did not work and the following error was generated;
ERROR in hwsolver script execution:
couldn't write file 'beam_maker_altair_44.err_39816.out': permission denied
***************************************
What does this mean? How can the .sh file and densities .dens file be generated by calling the optistruct in the command prompt (in MATLAB)?
My operating system is Windows 10, Hypermesh version 2017 and MATLAB R2017b.
Thank you,
-Eric
Answers
-
Hi Eric,
Looks like there are not enough permissions to write files into your current working directory.
Can you move the file to a different directory and check if that helps?
0 -
Hi Prakash,
Moving the fem file to another folder worked. The .sh file and den file were also generated, but was actually never a problem as the files were being rewritten without the file creation timestamp being updated.
Thank you,
-Eric
0