Restore view using view matrix

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hello

 

So I have 4*4 view matrix of a perticular view so I need to restore it how can I do it?

 

I want it in tcl file

 

for example FitAllFrames

command will do fit to screen 

 

so can is there command which will restore the view using my 4*4 view matrix??

 

OR

 

I have found this script in hm help document

 

hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
window_handle GetViewControlHandle viewctrl_handle
viewctrl_handle RestoreView “View 1“
puts 'Current View: [viewctrl_handle GetCurrentView]'
 
hwi CloseStack

 

I have view 1 already saved in my hyperview

but there is problem with this last command

 

puts 'Current View: [viewctrl_handle GetCurrentView]'

 

If I understand correctly this is to make the the view 1 current but its not working

but when I click on window it restores view 

so what is proble?

 

 

 

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2016

    Got the answer 

    file:///V:/aeapps/Hyperworks/v14_0_x64/Server/help/hwdref/hwdref.htm?poi3dviewctrl_restoreview.htm

     

    refer to link explained how to restore the views

     

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.