Getting all Elements of linked documents, visible in a View

Hi all, I am trying to get all the elements in a series of linked documents in Revit. I think I managed to get all the elements visible in the active documents, but when I tried to input the list of documents I get an error like:" the input is not a primary document".

I am sure there are various ways to get all the elements in view ( in my case a 3d view without template). One could be using the filter for the categories, like in this example

but I need a quick way to select all the visible categories in a View for different linked documents, without selecting them manually.

any suggestions?

The Active View component works on documents that are Open in Revit. Linked documents are only open as readonly and you can not open any of their views, sheets, etc.

Are you trying to query elements on a specific view inside a linked model?

hello Eshan,
thanks for the reply! that is exactly what I am trying to do, what is the most direct way to do that?

1 Like

If you place a ‘Query Views‘ component on the canvas and zoom in on it a + sign should become visible in the left side of the component.
If you click on it you can add a Document input parameter that will allow you to query views on the linked document as well.
Most of the components assume you are working on the active document but if is not the case like here you can pass an other document this way.


I was surely overcomplicating!

Thanks !