Get Subcase list and it's details in hyperworks desktop

raj_20928
raj_20928 Altair Community Member
edited October 2020 in Community Q&A

Hi all,

Good afternoon,

I have doubt in tcl.. how to Get Subcase and frequency values list in that subcase in hyperworks desktop instead of hyperview.some one can please assist me in this

Thank you in advance 

 

Answers

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited October 2020
    https://community.altair.com/community?id=community_question&sys_id=10664cf61b2bd0908017dc61ec4bcbef

     

    Once you get the IDs, you can use

     

     poIResultCtrl_handle GetSubcaseLabel id

    to get the labels. 

     

    regards,

    Livil

  • raj_20928
    raj_20928 Altair Community Member
    edited August 2019

    Thank you livil,

    I have a small query ..how to load input file and any results file in hyperview.and using overlay option in hyperview while loading any file.can u please assist me in this please.thank you in advance

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited August 2019

    Hi Raj,

     

    You can add model using:

     poIPost_handle AddModel filename (reader_name)

    and set results using:

     model_handle SetResult file_name (reader_name)

    AddModel by default will overlay the model,. 

  • raj_20928
    raj_20928 Altair Community Member
    edited August 2019

    thank you.. really helpful

    how to set  component Colors in hyperview any command to do that..is it possible to add any text to ppt.can u help me 

    Thank you..

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited August 2019

    For setting colors, get model handle and then use SetColor

     

     

    <?xml version="1.0" encoding="UTF-8"?>image.thumb.png.7ba5e203eae5cde3c3e5d4b0926053e3.png

     

    For PPT, use Automatic Report Director (ARD) it comes with Hyperworks 2019, for earlier versions you will have to install it though PSO installer,

    https://connect.altair.com/CP/downloads.html?suite=Packaged Solution Offerings

     

  • raj_20928
    raj_20928 Altair Community Member
    edited August 2019

    _20190823_201740.jpg.d74e9d40b5898c97c9f9ccb27e7b8661.jpg

    hi thank you lyle ,

    I am trying to plot graph with above .and I am getting error at selectYComponent step.

    Before that I requested y type and y request and y componentlist also.along with that I used build selectYComponent.though I could not able to get selected YComponent.could u please assist me .. below is the process I followed

    hwi GetSessionHandle sess;
    sess GetClientManagerHandle mgr plot;

    mgr GetBuildPlotsCtrlHandle build;

     

    #step2:getting y type successfully

    #step3: getting y request successfully

    build SelectYComponent {“ MAG”};-this is not coming and getting error.

    anything do we need to do to get Y component ?.

     

     

    thank you in advance Lyle.

     

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited August 2019

    Hi Raj,

     

    are you getting the build handle?

     

    hwi GetSessionHandle sess;
    sess GetClientManagerHandle pm Plot;

    pm GetBuildPlotsCtrlHandle bp;

     

  • raj_20928
    raj_20928 Altair Community Member
    edited August 2019

    Hi Lyle,

    yes I am getting build handle .

    And I can able to get X Type,Y type,Y request,but can not able to get Y component.

    As per above pic..I can get all other then y component.

    Any suggestion please assist me..

    I will be helpful 

    Thank you

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited August 2019

    Hi Raj,

     

    Can you try after adding 's' to the end of SelectYComponent.

     buildh SelectYComponents {MAG | Z-Trans}

    Share the code and error if you still face issue. 

  • raj_20928
    raj_20928 Altair Community Member
    edited September 2019

    Hi Lyle,

    your suggestion is very useful..thank you for that.

    Below is the code for generating curve plot with the below set options.with this I could not able to generate plot..could you please help me in this.where am I getting wrong.can you please check below code ..

     

    hwi OpenStack

    hwi GetSessionHandle mySession

    mySession GetClientManagerHandle mgr plot

    mgr GetBuildPlotsCtrlHandle bp

    bp SelectDataFile 'file_name' true;

    bp GetSubcaseList

    bp SetSubcase 'subcasename:'

    bp GetDatatypeList true;

    bp GetComponentList true;

    bp GetRequestList true;

    bp SetXDatatype 'time'

    bp SetYDatatype 'Displacement'

    bp SetYRequests {'Node 10'}

    bp SelectYComponents {' MAG'}

    bp GeneratePlots;

    mySession ReleaseHandle

    mgr ReleaseHandle

    bp ReleaseHandle

    hwi CloseStack

     

     

    Thank you in advance