🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Screenshot capture in Batch Mode

User: "Roshan Shiveshwar"
Altair Community Member
Updated by Roshan Shiveshwar

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

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "tinh"
    Altair Community Member
    Updated by tinh

    :unsure:/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?

    User: "Altair Forum User"
    Altair Employee
    Updated by Altair Forum User

    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. :wacko:/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'>

    User: "tinh"
    Altair Community Member
    Updated by tinh

    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

     

    User: "Roshan Shiveshwar"
    Altair Community Member
    OP
    Updated by Roshan Shiveshwar

    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' /> 

     

     

    User: "QuyNguyenDai"
    Altair Community Member
    Updated by QuyNguyenDai

    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 :-)