Hi everyone,

I'm writing a PythonPart script where I need to get all wall elements in an associative view, including walls that are on passive (closed) drawing files.
I found that ElementsSelectService.SelectAllElements(doc) works great for programmatic querying of all walls, but only returns elements from active drawing files.
I also found ElementSelectFilterSetting with eDocumentSnoopType.eSnoopAllDocuments which seems to be exactly what I need, but as far as I can tell this only works with interactive selection methods like StartElementSelect() or SelectElementsService.SelectByPolygon(), both of which require user interaction.
In my specific use case, there is always an associative view (UVS) active that displays all the relevant walls, including ones from passive drawing files. So alternatively, if there is a way to extract the wall elements visible in a given associative view from its BaseElementAdapter, that would also solve my problem completely.
Is there any way to either:
- Query elements across all drawing files programmatically without user interaction
- Extract the model elements visible in a given associative view from its adapter?

Thanks in advance!