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.")

API Requests#