Application#
The Application API is the core of the RSTAB API client, providing access to the main functionalities of the RSTAB 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 RSTAB API client by initializing the client and creating a new model.
from dlubal.api import rstab
# Initialize and connect to RSTAB
with rstab.Application() as rstab_app:
# Retrieve application info
app_info = rstab_app.get_application_info()
print("Application Info: ", app_info)
# Create a new model
rstab_app.create_model(name="QuickStart_Model")
print("Model created successfully.")
using Rstab = Dlubal.Api.Rstab;
using Google.Protobuf;
public class Cantilever
{
public static async Task CantileverModel(RstabApp RSTAB)
{
Rstab.ApplicationInfo app_info = await RSTAB.GetApplicationInfo();
Console.WriteLine("\nApplication Info: " + app_info);
// Step 1: Create a new model
await RSTAB.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