close_model#
- dlubal.api.rsection.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 rsection, common
with rsection.Application() as rsection_app:
    active_model_id = rsection_app.get_active_model().id
    rsection_app.close_model(
        model_id=common.ModelId(
            id=active_model_id),
            save_changes=False
    )
using rsection = Dlubal.Api.Rsection;
using Google.Protobuf;
ApplicationClient? rsection_app = null;
rsection_app = new ApplicationClient();
await rsection_app.close_model()