Message 1 of 3
GET A VIEWFILTERS AND SET IT TO OTHER VIEWS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Let's say I've created a filter without using the API, then I want to set it in other views:
So far Revit lookup identifies my filter view as a ParameterFilterElement and I'm making this task work bypassing its Id to a ElementId class, then I deploy the view.AddFilter() class. However, ironpython throws me back the following error :
view=doc.ActiveView
ogs=OverrideGraphicSettings()
filterId=ElementId(442768)
filter=doc.GetElement(filterId)
tr=Transaction(doc,"filter")
tr.Start()
view.AddFilter(filter.Id)
tr.Commit()
How can I query the filterElement Id of an actual View filter manually built without using API
Thanks In advance