Is it possible to get the phase filter list?

Is it possible to get the phase filter list?

Anonymous
Not applicable
1,011 Views
1 Reply
Message 1 of 2

Is it possible to get the phase filter list?

Anonymous
Not applicable

I am trying to export all the default and created phase filters from revit for a pluggin. I see that documents contain a list of phases but I can not find where the list of phase filters is or if a list can be created using some category filter. Any help would be appreciated. Thanks.

0 Likes
1,012 Views
1 Reply
Reply (1)
Message 2 of 2

FAIR59
Advisor
Advisor

PhaseFilters are Elements. So you can filter for them using an FilteredElementCollector.

 

List<PhaseFilter> _phFilters = new FilteredElementCollector(doc)

.OfClass(typeof(PhaseFilter)).Cast<PhaseFilter>().ToList();