close_model#
- dlubal.api.rstab.Application.close_model(self, *, save_changes, model_id=None)#
- Closes model specified by model id - Parameters:
- save_changes (bool) – Specifies whether to save changes before closing the model 
- model_id (ModelId | None) – Unique identifier of the model Active model is used if this field is not set. 
 
 
Method Type: Core
Usage
from dlubal.api import rstab, common
with rstab.Application() as rstab_app:
    active_model_id = rstab_app.get_active_model().id
    rstab_app.close_model(
        model_id=common.ModelId(
            id=active_model_id),
            save_changes=False
    )
using rstab = Dlubal.Api.Rstab;
using Google.Protobuf;
public class cantilever
{
    public static async Task CantileverModel(Application rstab_app)
    {
        await rstab_app.close_model()
    }
}