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


Usage

# Fetch the list of specific object type = StressPoint
stress_point_list = rsection_app.get_object_list(
    objs=[rsection.structure_core.StressPoint()]
)

# Iterate over each item in the list
for stress_point in stress_point_list:
    print(f"{stress_point.DESCRIPTOR.name} No: {stress_point.no}")