Application#
The Application API is the core of the RFEM API client, providing access to the main functionalities of the RFEM application itself. It allows you to create and manage models, retrieve information about the application, and execute calculations. The API is designed to be user-friendly and efficient, enabling you to automate tasks and streamline your workflow.
Quick Start
The following example demonstrates how to quickly get started with the RFEM API client by initializing the client and creating a new model.
from dlubal.api import rfem
# Initialize and connect to RFEM
with rfem.Application() as rfem_app:
# Retrieve application info
app_info = rfem_app.get_application_info()
print("Application Info: ", app_info)
# Create a new model
rfem_app.create_model(name="QuickStart_Model")
print("Model created successfully.")
using Rfem = Dlubal.Api.Rfem;
using Google.Protobuf;
public class Cantilever
{
public static async Task CantileverModel(RfemApp RFEM)
{
Rfem.ApplicationInfo app_info = await RFEM.GetApplicationInfo();
Console.WriteLine("\nApplication Info: " + app_info);
// Step 1: Create a new model
await RFEM.CreateModel("QuickStart_Model");
Console.WriteLine("\nModel created successfully.");
}
}
API Requests#
- Application (class)
- calculate_all
- close_all_models
- close_application
- close_connection
- close_model
- convert_objects
- create_model
- create_object
- create_object_list
- delete_all_objects
- delete_object
- delete_object_list
- generate_combinations
- get_active_model
- get_application_info
- get_base_data
- get_model_list
- get_model_main_parameters
- get_object
- get_object_id_list
- get_object_list
- get_result_table
- get_results
- import_model_from
- open_model
- plausibility_check
- save_model
- set_active_model
- set_base_data
- update_object
- update_object_list