문제

Does anybody know how to access and add the filters from the filters tab in the Visibilty Graphics from the Revit API in C#? I am using versie 2014 of the API. In the second screenshot the list is empty but in my revit project it is filled with filters.

enter image description here

enter image description here

도움이 되었습니까?

해결책

I found the solution:

FilteredElementCollector viewCollector = new FilteredElementCollector(doc);
viewCollector.OfClass(typeof(FilterElement));

the FilterElements in the collection are the ones in the dialog describe in my question.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top