How does "Exclude Types" works?

Hi,

just want to understand how does the component Exclude Types works?
It would be very much appreciated If anyone can give a simple example about this.

Thanks!

Great question!

Some filters return Types and Elements, Exclude Types will remove Types

We are actually filtering the types already, so you might not run into a need to use the component.

How it works:

When using a filteredElementCollector by Category of .OST_Walls it returns Wall Elements and Wall Types.

A WhereElementIsNotElementType method will remove the types.