Skip to content

View.ViewTemplateId

Public Property

The id of the template view that controls this view’s parameters.

Namespace: Autodesk.Revit.DB

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public ElementId ViewTemplateId { get; set; }

Property Value

ElementId
The id of the template view that controls this view’s parameters. InvalidElementId if there is no template set for this view.

Exceptions

Exception

Condition


ArgumentException

When setting this property: val is not valid as a view template id for this view.


ArgumentNullException

When setting this property: A non-optional argument was null


Remarks

Parameters controlled by the template cannot be changed directly in this view. Any change to controlled parameters in the template will cause change of the corresponding parameters in this view. Use

on the template view to get a list of all template parameters. Use GetNonControlledTemplateParameterIds. on the template view to get parameters that are not controlled by the template.