create_model#
- dlubal.api.rstab.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 rstab, common
with rstab.Application() as rstab_app:
rstab_app.create_model(name="new_model")
using rstab = Dlubal.Api.Rstab;
using Google.Protobuf;
public class cantilever
{
public static async Task CantileverModel(Application rstab_app)
{
await rstab_app.create_model(name="new_model")
}
}