create_model#
- dlubal.api.rsection.Application.create_model(self, *, name, template_path=None)#
Creates new model with the name specified in request. Returns model id of created model
- Parameters:
name (str) – Name of the new model
template_path (str | None) – Path to the existing template to be opened
- Returns:
dlubal.api.common.model_id_pb2.ModelId
- Return type:
ModelId
See also
ModelId — More details about the ModelId object.
Example
from dlubal.api import rsection, common
with rsection.Application() as rsection_app:
rsection_app.create_model(name="new_model")
using rsection = Dlubal.Api.Rsection;
using Google.Protobuf;
ApplicationClient? rsection_app = null;
rsection_app = new ApplicationClient();
await rsection_app.create_model(name="new_model")