🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Hypermesh Python API: Get Multiple Entities

User: "KrisGarner"
Altair Community Member
Updated by KrisGarner

Hi. Just wondering if there is a Python API (i.e. method) to get multiple entities?  The "get" class method (for the Session object) can get a single entity, but what I want to do is get multiple entities (CurveXY entities in my case), put them in a Python list (say), do some maths on them, and then write out either multiple or single curves.

If this not available in 2023.1, is there a plan to implement this in a future version?

Thanks,

Kristian

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Michal Stefuca"
    Altair Employee
    Accepted Answer

    Hi @KrisGarner

    In 2025.1 (coming soon) we are adding new methods to give you all the curves in a window:

    getCurvesXY method to XYPlotWindow class
    getCurvesComplex method to ComplexPlotWindow class
    getCurvesBar method to BarPlotWindow class
    getCurvesPolar method to PolarPlotWindow class

    image.png

    Thanks,
    Michal Stefuca

    Automation & Customization

    User: "Michal Stefuca"
    Altair Employee
    Accepted Answer

    Hi @KrisGarner

    That is correct, it will return all the curves. You will have to filter through them manually by checking their attributes in a for loop.

    More capabilities are being considered as part of the future development.

    Thanks,
    Michal Stefuca

    Automation & Customization