Revit 2026 API
Filter |
Constructs a new instance of the FilterDialog class,
while setting the id of the FilterElement to be selected when the dialog is shown.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public FilterDialog( Document doc, ElementId filterToSelect )
Public Sub New ( doc As Document, filterToSelect As ElementId )
public: FilterDialog( Document^ doc, ElementId^ filterToSelect )
new : doc : Document * filterToSelect : ElementId -> FilterDialog
Parameters

Exception | Condition |
---|---|
ArgumentException | The supplied ElementId filterToSelect is not of a FilterElement. |
ArgumentNullException | A non-optional argument was null |

Show the dialog with the Show() method after setting the desired options.
See Also