Hypermesh Python API: Get Multiple Entities

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
Hi Michal,
Thanks for your comment. We are starting to look at this again in 2024.1 and wondering if you have any updates on when this might be implemented? The get method can be used for many different single entity types, so having a complementary method to get multiple entities would be very useful in many applications. For my own application, I want to get all curves in the current window and then filter (e.g. by subcase) and then do some curve maths on them (e.g. add them all up and do a max envelope of the lot). At the moment, the only way round this I can see is to write my own (slightly hacky) modules/functions, but it would be nice to have these in the core code.
Thanks,
Kristian
@Michal Stefuca -just tagging you again here for an update as I forgot to do so in my last comment, thanks.
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

Thanks,
Michal Stefuca
Automation & Customization
Thank you again for the quick reply @Michal Stefuca -will there be any additional arguments the user can specify to get all visible or selected curves also? I assume the above method gets all curves whether they are visible/selected or not.
Best Regards,
Kristian
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
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

Thanks,
Michal Stefuca
Automation & Customization
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
Hi Kristian,
At the moment, we do no support a collection mechanism for HyperGraph entities, but it is part of our roadmap. We are planning to start the work on it when the currently running HyperGraph Python API projects are closed.
Thanks,
Michal Stefuca
Automation & Customization