Community
Hello,
How can I access Visibity/Graphic Overrides -> Filters, through API ?
Please see the attached screenshot.
I needto check the collors of Lines and Patterns.
Thank you in advance.
Solved! Go to Solution.
Solved by Charles.Piro. Go to Solution.
Thank you, Charles.
But how can I get the color of the lines and patterns ?
This class FilterElement dont have this properties.
I think I got it:
Snippet
Document doc = App.ActiveUIDocument.Document; Autodesk.Revit.DB.View vista = doc.ActiveView; ICollection<ElementId> lstFilterView = vista.GetFilters(); foreach (ElementId filterId in lstFilterView) { FilterElement fel = doc.GetElement(filterId) as FilterElement; OverrideGraphicSettings cfg = vista.GetFilterOverrides(fel.Id); }