Get selected objects in the RFEM model using API-2 and C#

Using API-2 and C# how to get the selected objects in the RFEM6 model?

The ApplicationRFEM class only gets objects by giving a number.

RFEM.StructureCore.Line line = await RFEMApp.get_object<RFEM.StructureCore.Line>(new RFEM.StructureCore.Line { No = 2 });

Hi PSA001,

the answer can be found in the documentation:
get_object_list — Dlubal API documentation
You can use the parameter only_selected of the method get_object_list.

Best regards
Robert Milrath

1 Like