Phase Created filter for Windows

These Nodes select all windows used in the project. How can I create a toggle to filter the phase created. For example, if I work on a project with additions, I would like to toggle only Phase Created New, and then only the windows with phase marked New Construction, will be placed.
Any idea how I can achieve this?
I have Select Phase - > All Elements of Phase. but from there I need to filter only windows.

Hi,

There are 2 (at least) ways how you can access windows of only one phase

  1. Using your workflow, you have All element at Phase node, and All Elements of Category node. You can add node Lists.SetIntersection, connect 2 inputs from 2 your lists. It will give you only elements existing in both lists.
  2. After you get all elements of category, get the parameter value “Phase Created“, get the name of phase using Element.Name and then filter phase by name.
2 Likes

This is probably the best option. Starting with all elements in a given phase would likely return way more elements than just the category. This option should be much “lighter” normally and follows the very common process of get elements → filter by parameter value. Easy to scale for similar needs.

Thanks Andriy,

worked perfectly!

Appreciated

1 Like