has_results#
- dlubal.api.rfem.Application.has_results(self, *, loading=None, model_id=None)#
Checks whether the model contains calculation results for the selected loading, loading type, or any loading. Returns True if results are available.
- Parameters:
- Returns:
google.protobuf.BoolValue
Usage
# Check if there are results for any loading type
has_results = rfem_app.has_results()
print(f"Has results: {has_results.value}")
# Check if there are results for any load combination
has_results = rfem_app.has_results(
loading=rfem.ObjectId(
object_type=rfem.OBJECT_TYPE_LOAD_COMBINATION
)
)
print(f"Has results: {has_results.value}")
# Check if there are results for a specific load combination (no=2)
has_results = rfem_app.has_results(
loading=rfem.ObjectId(
no=2,
object_type=rfem.OBJECT_TYPE_LOAD_COMBINATION
)
)
print(f"Has results: {has_results.value}")
// Check if there are results for any loading
var hasResults = await RfemApp.has_results();
Console.WriteLine($"\nHas results: {hasResults}");
// Check if there are results for a specific loading type
var hasResults = await RfemApp.has_results(
loading: new Rfem.ObjectId
{
ObjectType = Rfem.ObjectType.LoadCase
}
);
Console.WriteLine($"\nHas results: {hasResults}");
// Check if there are results for a specific load combination (no=2)
var hasResults = await RfemApp.has_results(
loading: new Rfem.ObjectId
{
ObjectType = Rfem.ObjectType.LoadCase,
No = 2
}
);
Console.WriteLine($"\nHas results: {hasResults}");
Output:
Has results: True