dlubal.api.rfem.Application#
The dlubal.api.rfem.Application
represent API client for interacting with RFEM 6.
It enables you to manage models, work with model objects, and perform calculations—including retrieving results—programmatically, offering greater efficiency, automation, and flexibility in your workflows.
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(api_key_value="your_api_key") 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.")
Constructor#
|
General#
|
Returns information about the application |
|
Closes the whole application |
|
Closes connection to Webservice server |
Model#
|
Creates new model with the name specified in request. |
|
Opens model from path specified in 'name' field of the request Returns model id of opened model |
|
Saves model specified by model id to optional specified path |
|
Closes model specified by model id |
|
Closes all open models |
|
Returns model id of an active model |
|
Sets active model specified by model id |
|
Returns list of models and information about them |
|
Retrieves the main parameters of a model, including its ID, name, description, comments, file path, and associated project details. |
Objects#
|
Creates a single object in the model. |
|
Creates a list of objects in the model. |
|
Updates a single object in the model. |
|
Updates a list of objects in the model. |
|
Deletes a single object from the model. |
|
Deletes a list of objects from the model. |
|
Deletes all objects |
Calculation#
|
Performs a full calculation for all objects. |
Results#
|
GetResults returns Table, which is just a convenience wrapper around a Pandas Dataframe. |
Tools#
|
Performs validation based on the specified validation type. |