Filter by a specific material type for result output

Hello everyone,

is there a possibility in API2 for RFEM6 to set up a filter for a specific material when outputting the results?
For example, I would like to receive only the results of the Rankine equivalent stress for the material glass.

In a webinar, I learned that the function (at least back then) only works as a filter for a load case or a specific component, e.g., surface 1.

Thank you very much for the help.

Hi Fabian_Allgayer,

you're right, this is how the filter is implemented currently. But in the material you will have a list 'assigned to', so you could get this list, or do more filters if needed, and then pass this list to the filter of the results as the filter_expression:

my_filter_expression = create list of objects with desired material (e. g. '1,3,6')
filters=[RFEM.results.ResultsFilter(column_id='member_no', filter_expression=my_filter_expression)]

#Retrieve filtered results as a Pandas DataFrame (.data)
results: pandas.DataFrame = RFEM_app.get_results( results_type=RFEM.results.ResultsType.STATIC_ANALYSIS_MEMBERS_INTERNAL_FORCES,
filters=filters
).data
print(f"\nResults Pre-processed (Filters):\n{results}")

Best regards
Robert Milrath