How to select all in Matsum y-vector set request?

Sathish_21542
Sathish_21542 Altair Community Member
edited July 2021 in Community Q&A

I have a .matsum file to plot in Hypergraph. There are a lot of plots in "Y Request". While doing manually, we have the option to select "All". But I couldn't select "All" through the API "pltIVector_handle SetRequest request." I am able to give only one request at a time. This consumes a lot of time than doing manually. Is there a better solution for this?

 

image

Thanks in Advance!

Answers

  • Michael Herve
    Michael Herve
    Altair Employee
    edited July 2021

    Hello Sathish,

    when you script curve, you need to create a loop to cover all your request. So basically you weel need to get the list of request with "pltIVector_handle GetRequestList" that you will have to store in a list

     

    Then you need to loop over each element of the list thanks to foreach statement :

    set requestlist [pltIVector_handle GetRequestList]

    foreach curverequest $reqlist {

    #call Y type, request and component

    #call X Type, Request and Component

    #Plot the curve

    }