get_object_list#
- dlubal.api.rsection.Application.get_object_list(self, objs, only_selected=False, model_id=None)#
- Retrieves a list of objects from the model. - Parameters:
- Returns:
- A list of retrieved objects. 
- Return type:
 
Method Type: Core
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}")
// Fetch the list of specific object type = StressPoint
var stressPointList = await RsectionApp.get_object_list(
    new List<IMessage> { new Rsection.StructureCore.StressPoint{} }
);
// Iterate over each item in the list
foreach (var obj in stressPointList)
{
    if (obj is Rsection.StructureCore.StressPoint stressPoint)
    {
        Console.WriteLine($"StressPoint No: {stressPoint.No}");
    }
}