Commands  ›  Combined  ›  Apply Linked View Settings To Templates

Apply Linked View Settings To Templates

Combined writes to model Public API · not yet exposed

Coming soon

Before you run this

Active document must be open with at least one view template. Current view should have a view template assigned. At least one RevitLinkInstance should exist in the model.

After it runs

All view templates in the document have the same linked model display settings as the source template from the current view.

When to use this

Don't use this when

Not for autonomous AI execution. This command requires interactive Revit UI input (dialogs, picks, or manual confirmation).

Side effects

Modifies all view templates in the document. Changes RevitLinkInstance visibility/graphics settings in templates.

Inputs

NameKindTypeRequiredDefaultDescription
SourceView selection View yes Source view with template to copy from
"Active view is used as source"
ApplyToAllTemplates config bool no true Whether to apply to all templates or same type only

Returns

NameTypeDescription
TemplatesUpdatedintNumber of templates updated
LinksProcessedintNumber of linked models processed

Decision flow

check: document.isOpen → continue
check: activeView.hasTemplate → continue, else → error
action: getSourceTemplate → from activeView.ViewTemplateId
action: getLinkedInstances → collect RevitLinkInstances
action: getSourceSettings → GetLinkOverrides for each link
action: getAllTemplates → ListTemplates.GetAll
action: applyToAllTemplates → SetLinkOverrides for each template
resolve: success → showSuccess with count

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/apply_linked_view_settings_to_templates
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

linked model settings · template link settings · copy link display · apply template settings · revit link visibility
Patterns: apply * link * settings * templates · copy * template * link · match * linked * display · sync * link * templates

Related commandsCreateViewsCommand · SetTemplateCommand
PillarCombined