Commands  ›  General  ›  Create Views

Create Views

General writes to model Public API · not yet exposed

Coming soon

Before you run this

Active document must be open. At least one MEP service must be detected in the model. At least one primary level must exist.

After it runs

Plan views are created for each combination of service type, level, and scope box. Views are named as "{ServiceType} - {Level} - {ScopeBox}". Scope boxes are assigned to views when useScopeBoxes is true.

When to use this

Don't use this when

Creating a single view for one level (use CreateSimilarViewsForLevelsCommand). Creating sections (use CreateSectionFromGridlineCommand).

Inputs

NameKindTypeRequiredDefaultDescription
serviceTypes config string no JSON array of service type names to process
levelNames config string no JSON array of level names to process
useScopeBoxes config bool no true If true, create per-scope-box views
scopeBoxNames config string no JSON array of scope box names to use
scale config int no 50 View scale

Returns

NameTypeDescription
CreatedViewsList<ViewPlan>List of created view plans
ViewCountintNumber of views created

What you'll see in the chat

on start
Creating MEP plan views for your project...
Setting up views for all services and levels...
thinking
Detecting active MEP services...
Getting primary levels...
Collecting scope boxes...
Creating views for each service × level × scope box...
on success
Created {count} views across {services} services and {levels} levels.
on failure
View creation 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_views
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

create views · make views · batch views · MEP views · service views · plan views
Patterns: create * views · make * views · batch * views · create * MEP * views

Related commandsCreateSimilarViewsForLevelsCommand · CreateSheetCommand
PillarGeneral