Message 1 of 4
Find user-defined view filters that affect certain elements
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Back with another fun one. I need to seek out filters defined on a view (or template) that may affect the visibility of important elements that are being added to a sheet by my add-in.
Can anyone help me fill in the missing method?
static void checkAndRemoveFilters(Document doc, View view, ElementId mustBeVisible)
{
if(view.GetFilters().Count() > 0)
{
foreach(ElementId id in view.GetFilters())
{
FilterElement filter = doc.GetElement(id) as FilterElement;
//????
//if(filter.wouldHide(mustBeVisible))
//{
//...
//}
}
}
}