calculate_all#
- dlubal.api.rsection.Application.calculate_all(self, *, skip_warnings, model_id=None)#
Performs a full calculation for all objects. Returns result of the operation, description of the result and possibly additional information about an error.
- Parameters:
skip_warnings (bool) – Specifies whether to skip warnings during the calculation.
model_id (dlubal.api.common.model_id_pb2.ModelId | None) – Unique identifier of the model.
- Return type:
OperationResult
Active model is used if this field is not set.
- Returns:
dlubal.api.common.common_messages_pb2.OperationResult
- Parameters:
skip_warnings (bool)
model_id (ModelId | None)
- Return type:
OperationResult
Calculates all load cases, combinations, and add-ons.
Example
from dlubal.api import rsection
with rsection.Application() as rsection_app:
rsection_app.open_model("model_path")
calc_info = rsection_app.calculate_all(skip_warnings=True)
print(f"\nCalculation Info:\n{calc_info}")
using rsection = Dlubal.Api.Rsection;
using Google.Protobuf;
ApplicationClient? rsection_app = null;
rsection_app = new ApplicationClient();
await rsection_app.open_model("model_path");
await rsection_app.calculate_all(skip_warnings: true);
Output:
Calculation Info:
succeeded: true
data: ""
message: ""