Share

View.ViewTemplateId Property

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


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

Syntax

C#

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

ExceptionCondition
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 GetTemplateParameterIds() 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.

See Also

Reference

Was this information helpful?