Message 1 of 8
Retrieving Views associated with an Element Id?

Not applicable
10-05-2015
03:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We can use FilteredElementCollectors to retrieve all Element Ids associated with a view, i.e., FilteredElementCollector(doc, view.Id). Given one of these elements, can we instead programmatically retrieve all the views in which this element is visible? My instinct is "no", both because I didn't see such a call in the Element or FamlyInstance documentation, and because I imagine this would put quite a tax on the DB whenever the a view's graphics overrides are changed. That said, I figure there's no harm in asking 🙂
Thanks in advance!