create_model#
- dlubal.api.rfem.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:
Method Type: Core
Usage
model_id: common.ModelId = rfem_app.create_model(
name="new_model"
)
print(f"Created model GUID: {model_id.guid}")
Common.ModelId modelId = await rfemApp.create_model(
name: "new_model"
);
Console.WriteLine($"Created model GUID: {modelId.Guid}");
Output
Created model GUID: "9e09db41-3984-4219-9bf2-db5c87ebfede"