Skip to content

View.Filters returns error with SelectionFilter #3411

Description

@MvanderLindenVW

Dynamo Version

Dynamo 3.3.0

Revit Version

2025

Operating System

Windows 11

What did you do?

I want to list the viewfilters for a few views.

I want to use the View.Filter node for it.
It works fine for most views. but i have a few views that have selectionfilter assigned.

For those views the view throws an error.

The node only seems to work with RuleBased ParameterFilters

What did you expect to see?

The list of the viewfilters including the Selectionfilter.
Maybe with an adittional output of fiter type?

What did you see instead?

Errormessage:
Node Name: View.Filters
Original Node Name: View.Filters
Package: Revit.Views.View.Query
Dynamo Version: 3.3.0.6316
Host: Dynamo Revit
Messages: View.get_Filters operation failed.
Unable to cast object of type 'Revit.Elements.UnknownElement' to type 'Revit.Filter.ParameterFilterElement'.
State: Warning

Stacktrace/logs

No response

Details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions