Set Hypermesh and Hyperview in window 1 and window 2

Manjunath MD
Manjunath MD Altair Community Member
edited October 2020 in Community Q&A

.

Tagged:

Answers

  • Adriano_Koga
    Adriano_Koga
    Altair Employee
    edited September 2020

    You need to understand first of all the hierarchy for HW Desktop scripts. (Check HWDesktop reference guides in help)

    Every control is embed in its own level.

    Page related commands are tied into the Page Handle.

    Window related commands are tied into the Client Handle.

     

    I'm far from the computer, but it would be something like this:

     

    hwi OpenStack

    hwi GetSessionHandle sess

    sess GetProjectHandle proj ; #can't remember if proj comes before sess..maybe needs to change

    proj GetPageHandle pag1 1

    pag1 SetLayout 2; #need to check the command and code for 2 windows in this page

    pag1 GetWindowHandle p1w1 1

    p1w1 SetClientType 'pre'; #dont remember the exact command but it should be inside the page handle and need to check if it is 'pre' for HM or 'model'

     

    pag1 GetWindowHandle p1w2 2

    p1w2 SetClientType 'post'

    ..

    hwi CloseStack

     

    Maybe these are not the exact commands, but it is almost like this.

     

  • Manjunath MD
    Manjunath MD Altair Community Member
    edited September 2020

    Thank you Adriano