Application#
The Application API is the core of the RSECTION API client, providing access to the main functionalities of the RSECTION 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 RSECTION API client by initializing the client and creating a new model.
from dlubal.api import rsection
# Initialize and connect to RSECTION
with rsection.Application() as rsection_app:
# Retrieve application info
app_info = rsection_app.get_application_info()
print("Application Info: ", app_info)
# Create a new model
rsection_app.create_model(name="QuickStart_Model")
print("Model created successfully.")
using rsection = Dlubal.Api.Rsection;
using Google.Protobuf;
public class Cantilever
{
public static async Task CantileverModel(Application rsection_app)
{
rsection.ApplicationInfo app_info = await rsection_app.get_application_info();
Console.WriteLine("\nApplication Info: " + app_info);
// Step 1: Create a new model
await rsection_app.create_model("QuickStart_Model");
Console.WriteLine("\nModel created successfully.");
}
}
API Requests#
- Application (class)
- calculate_all
- close_all_models
- close_application
- close_connection
- close_model
- create_model
- create_object
- create_object_list
- delete_all_objects
- delete_object
- delete_object_list
- 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
- open_model
- plausibility_check
- save_model
- set_active_model
- set_base_data
- update_object
- update_object_list