Starting a Solver automatically
Hey guys,
is it somehow possible to start and execute an OptiStruct Solver Run automatically by a .tcl command or script?
The aim of this is to create the .h3d-File and .res-File automatically without pressing any buttons.
I'm working with the 2017.2 student version of HyperWorks.
Kind regards and thanks in advance,
Simon
Find more posts tagged with
Hey tinh,
I've checked the other topic, but an error is still occuring.
This is the part of my code where I'm trying to run the simulation:
*createstringarray 1 'CONNECTORS_SKIP '
hm_answernext yes
*feoutputwithdata 'C:/Program Files/Altair/2017.2-edu/templates/feoutput/optistruct/optistruct' 'C:/Users/Simon/Desktop/CAO/test.fem' 1 0 2 1 1
exec 'C:/Program Files /Altair/2017.2-edu/hwsolvers/scripts/optistruct.bat' 'C:/Users/Simon/Desktop/CAO/test.fem' -analysis
*writeh3dwithoptions 'C:/Users/Simon/Desktop/CAO/test.h3d' 1 4
The test.fem is written and saved into the desired folder, but an error is occuring in the next line.
Could you help me out there? I'm using Windows 10.
Besides, I'm aiming for writing a .res-file. Do you know how this works?
Kind regards and thanks in advance,
Simon
As you can see on the screenshot, this is the path indicated by windows.
I improved my code to:
*createstringarray 1 'CONNECTORS_SKIP '
hm_answernext yes
*feoutputwithdata 'C:/Program Files/Altair/2017.2-edu/templates/feoutput/optistruct/optistruct' 'C:/Users/Simon/Desktop/CAO/test.fem' 1 0 2 1 1
'C:/Program Files /Altair/2017.2-edu/hwsolvers/scripts/optistruct.bat' 'C:/Users/Simon/Desktop/CAO/test.fem' -analysis
Now an error is occuring saying that the last line is an invalid command name.
I answered this in a certain topic. Please search it first