Commands › › Create View Template
Create View Template
Coming soon
Before you run this
Writable document; valid parameter combination (see remarks).
After it runs
New view template element exists when the helper returns a non-null view.
Inputs
| Name | Kind | Type | Required | Default | Description |
|---|---|---|---|---|---|
templateName |
config | string |
no | — | Name for the new view template |
sourceViewName |
config | string |
no | — | Optional seed view (exact name) for FromView |
serviceType |
config | string |
no | — | For CreateMepStandard: drainage|mechanical|electrical|fire|plumbing |
scale |
config | int |
no | 100 | View scale denominator (default 100) |
Returns
| Name | Type | Description |
|---|---|---|
templateId | int | New template element id |
What you'll see in the chat
on start
Creating the view template...
Preparing template from your parameters...
Choosing between duplicate-from-view and MEP standard template paths...
Preparing template from your parameters...
Choosing between duplicate-from-view and MEP standard template paths...
thinking
Read templateName, optional sourceViewName, optional serviceType, and scale.
If sourceViewName is set, resolve it with ListViews.FindByExactName and call CreateTemplate.FromView.
If no source view, require serviceType and call CreateTemplate.CreateMepStandard.
Validate the seed view is not a template before FromView.
Parse scale with recoverable fallback to 100 when invalid.
Run the chosen factory inside a manual transaction; roll back on null result.
If sourceViewName is set, resolve it with ListViews.FindByExactName and call CreateTemplate.FromView.
If no source view, require serviceType and call CreateTemplate.CreateMepStandard.
Validate the seed view is not a template before FromView.
Parse scale with recoverable fallback to 100 when invalid.
Run the chosen factory inside a manual transaction; roll back on null result.
on success
View template '{templateName}' was created (id {templateId}).
on failure
Create view template failed: {error}
REST API
Not yet exposed
This command does not carry a [RestApi] attribute today. Once tagged, this section will auto-populate with:
POST /api/v1/commands/create_view_template- Request body schema (from
[RestApiParam]) - Response schema (from
[RestApiResponse]) - curl / JS / Python code examples
Keywords & intent patterns
create template · new view template · make template
Related
| Related commands | ConfigureViewTemplateCommand · AddFilterToTemplateCommand |
|---|---|
| Pillar |