get_object_list#

dlubal.api.rfem.Application.get_object_list(self, objs, only_selected=False, model_id=None)#

Retrieves a list of objects from the model.

Parameters:
  • objs (list[obj]) – A list of model objects to retrieve. See Model.

  • only_selected (bool, optional) – If True, only returns objects from the list that are currently selected in the model.

  • model_id (ModelId | None) – Unique identifier of the model. If None, the active model is used.

Returns:

A list of the retrieved objects.

Return type:

list[obj]


Example

rfem_app.get_object_list()
# Get all objects from specific type without parent
all_members = rfem_app.get_object_list([rfem.structure_core.Member()])
# Get all objects from specific type with parent
all_member_load = rfem_app.get_object_list([rfem.loads.MemberLoad(load_case = '')])
# Get all objects
all_objects = rfem_app.get_object_list([rfem.All()])