get_object_list#

dlubal.api.rsection.Application.get_object_list(self, objs, model_id=None)#

Retrieves a list of objects from the model.

Parameters:
  • objs (list[obj]) – An object list to be retrieved. Refer to the Model for available objects.

  • model_id (ModelId | None) – Unique identifier of the model.

Returns:

A list of retrieved objects.

Return type:

Model


Example

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