Skip to content

SelectableInViewFilter(Document, ElementId)

Public Constructor

Constructs a new instance of an SelectableInViewFilter.

Namespace: Autodesk.Revit.UI.Selection

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

Syntax

public SelectableInViewFilter(
Document document,
ElementId viewId
)

Parameters

document Document

The document that owns the view.

viewId ElementId

The view id.

Exceptions

Exception

Condition


ArgumentException

viewId is not a view. -or- viewId is not valid for element iteration, because it has no way of representing drawn elements. Many view templates will fail this check.


ArgumentNullException

A non-optional argument was null