Jump to content
etrud011

Permission denied running optistruct.bat from command prompt

Recommended Posts

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

Share this post


Link to post
Share on other sites
Guest

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...