Jump to content

Recommended Posts

Hi,

 

I would like to export all the pages in my hyperview with required screen resolution. In Hyperview there is an option in Menu- Export* - Multiple Images - old/Advanced where I can specify width and height seperatly. But this option is restrictred to 'Export each window separately total page size'. This means If i have 4 windows in a page this option is exporting images of individual window with specified resolution.

 

I would like to export all the pages with required width and height.

 

At present I am trying to using command window with following commands by opening every page:

 

hwi GetSessionHandle sess

sess CaptureScreenToSize png 01.png 1400 593

 

I am trying to write a tcl/tpl script to automate this process (Export all pages with given width and height).

 

It would be appreciated if someone can help me with this code.

 

Thanks in advance

 

Agassi

Share this post


Link to post
Share on other sites
On 17.2.2018 at 8:49 AM, Rahul R said:

Sorry for the late reply.I guess below post should help you for your query,

 

Hi, I have seen this topic before,  but this is not what I am looking for. Please let me know if there is any other option.

 

Or let me know the code for function Export* - Multiple Images - old/Advanced , So that I can modify ' Export each window separately total page size' to Export each page seperatly with required page size.

 

Regards

Agassi

Share this post


Link to post
Share on other sites

Hi Agassi,

in the script exchange databases there's a tcl script (No 41044) which does almost what you desire:  It creates a pic (of the page) with a factor in the resolution.

So you can export pics at higher resolution, but they still depend on your windows size.

i.e. in my case the standard pic export will lead to a 1376*640 pic.  With this script the pics a x4 quality -> 5528*2600. 

Does that help?

  :-)

    CAE-Guru

Agassi likes this

Share this post


Link to post
Share on other sites

I know your confuse, I also met this problem before. Acturally Altair don't want customer change the size of graphic area, because it will cause some error of layout.

 

But if you want to change the size of graphic, you can use this code for reference.

 

place .mainFrame.center.f3.center_frm.graphicfrm -width 1432 -height 715 -x 42  -y 0

 place .mainFrame.center.f3.center_frm.graphicfrm -width 800 -height 500 -x 42  -y 0

 

Jason

Capture2.PNG

Capture3.PNG

Share this post


Link to post
Share on other sites

Hi @Jason_Yin

 

In this case if we are resizing the window size manually by scrolling up command window.

resizedAfterplacing.JPG.ad86225ee2a54e8cbe91615325c18e9b.JPG

 

The available window (After resizing by using command place) is not resizing automatically it is going beyond the screen. jason_yin is there any solution for that so it should automatically resized if user manually tries to resize it.

 

 

 

Thanks,

Vikas Kumar

 

 

beforeAfterplacing.JPG

Share this post


Link to post
Share on other sites

Hi @Vikas Kumar

 

There have no method to let the window resizing automatically after you use this code. As I told, Altair don't want customer change the size of graphic area, because it will cause some error of layout.

 

If you want to adjust the window to normal(which can resize automatically), you need to delete the hmsettings.tcl & hwsettings.xml files and restart the HW.

 

In your HW, you can type this code.

 

place .mainFrame.center.f3.center_frm.graphicfrm -width 550 -height 350 -x 84  -y 0

 

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