Jump to content

Recommended Posts

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

Share this post


Link to post
Share on other sites
Guest
20 hours ago, Roshan Shiveshwar 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. :wacko:

 

But I think something like this will be a added feature. ;)

Share this post


Link to post
Share on other sites

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

 

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...