Grab all Phase Filters

Hello all,

I wish to grab all of my phase filters in a model so I can start to automate our offices way of doing phasing. Is there anything our there that can accomplish this?

Thanks,

In Dynamo to get the Phases you can do this:

PhaseArray phaseArr = DocumentManager.Instance.CurrentDBDocument.Phases;

To get all phase filters you can do this:

var fec = new FilteredElementCollector(DocumentManager.Instance.CurrentDBDocument).OfClass(PhaseFilter);

That will get you started I think.

Cheers!

1 Like

Awesome! Thank you.

Here are 2 custom nodes using OOTB and Rhythm nodes only.

The first returns a list of all Phase Filters in the current document and the 2nd returns a Phase Filter by name (if it exists in the current document).

Using 2022 and dynamo 2.12.


1 Like