RVTDocs.com
Namespace: Autodesk.Revit.DB Class: View

View.IsValidViewTemplate

Method
Description:
Verifies that the view represented by templateId can be set as the controlling view template for this view.
Syntax
public bool IsValidViewTemplate(
	ElementId templateId
)
Parameters
Parameter Type Description
templateId ElementId The id to be validated as a view template for this view.
Return Value
Type Description
Boolean True if the view is valid for us as a view template and compatible with this view, or if it is InvalidElementId, false otherwise.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null