Screenshot capture in Batch Mode
Hi,
I have created a tcl script that captures screenshots (.jpg images) from Hypermesh screen. The script works fine when I execute it in interactive mode , but fails when I try it in batch mode.
So, is there any way to capture images in Batch mode?
API used in tcl script : *jpegfilenamed 'Model_iso.jpg'
Command in .bat file : call %ALTAIR_HOME_DIR%\hw14.0\hm\bin\win64\hmbatch.exe -b -tcl captureImages.tcl >> captureImages.log 2>&1
Thanks,
Roshan
Answers
-
/emoticons/default_unsure.png' title=':unsure:' />
Maybe, no way.
you are in batch mode that there is no GUI, how can you capture a GUI when you don't have it?
0 -
Altair Forum User said:
but fails when I try it in batch mode.
So, is there any way to capture images in Batch mode?
What ever geometry cleaning, meshing works in the back ground and code does all this and there is no chance of graphics during the process. /emoticons/default_wacko.png' title=':wacko:'>
But I think something like this will be a added feature. /emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20'>
0 -
The temporary solution is do not run hmbatch.exe,
if you just want to hide hypermesh window, at begining of your script, call withdraw command:
wm withdraw . #your codes here... *jpegfilenamed Model_Iso.jpg #.... #stop: wm state . zoomed #or save file and quit: *writefile your_file.hm 1 exit
0 -
Thanks tinh, Prakash.
I was having the same thought. But, it will be really wonderful if we can somehow achieve it. /emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20' />
0 -
In fact, when you make a screenshot, you catch whatever displayed in a screen, real or virtual. If you have not a 'screen', you can't do screen...shot, that's logic :-)
0