View.CreateViewTemplate Method

ViewCreateViewTemplate Method

Creates a new view template instance from this view instance.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public View CreateViewTemplate()
Public Function CreateViewTemplate As View
public:
View^ CreateViewTemplate()
member CreateViewTemplate : unit -> View 

Return Value

View
New view template instance
Exceptions
ExceptionCondition
InvalidOperationException The view is not valid for view template creation.
See Also