Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Batch Runs, Optimization, and Windows

  • Thread starter Thread starter james95777
  • Start date Start date
J

james95777

Guest
I would like to run an optimization study in Mechanica as a batch file.
The optimization is based on a static analysis. I am operating on a Windows platform.


I can run the optimization directly from Mechanica (not as a batch file), and get results. However, when I create a batch file, then run the batch, I have problems. It will run initially, but will not be able to see the geometry and thefollowing message appears in the log file:


Error updating parameters:
The Pro/ENGINEER model "C:\Documents" could not be retrieved.


I have run static analyses from the batch file without encountering this.


Any ideas?


Thanks,


James
Edited by: james95777
 
So once again I figured out the answer to my own question.
smiley1.gif



My version of Pro/Mechanica truncates part filenames at spaces when calling from an optimization run from a batch file. Thus, if your path has a space in it, Mechanica will exit with an error because it is looking in a directory that doesn't exist.


Oneway around this:


If you're running an optimization from a batch file in Windows, move all your files to a directory which has no spaces in the pathname ( i.e. not "My Documents", but something like C:\Optimization\Projectname )


- James
Edited by: james95777
 

Part and Inventory Search

Sponsor

Back
Top