CreateViewTemplate Method


Creates a new view template instance from this view instance.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2020

Syntax

C#
public View CreateViewTemplate()
Visual Basic
Public Function CreateViewTemplate As View
Visual C++
public:
View^ CreateViewTemplate()

Return Value

New view template instance

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsInvalidOperationException The view is not valid for view template creation.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →