How to get all elements of linked file in active view?



I want to get all elements from linked file in active view, I am using steamnode to get element from linked file. is there any filter node I can use here to get only elements of active view.



You can use GetLinkedElement.InHostViewAndCategory from Data-Shapes package.


Hi @Alban_de_Chasteigner

please see the below I am getting null as a result


Don’t input a list of document in LinkDoc.
Use a GetItemAtIndex node to not have a list.

There is also the node Get Elements in View in Document by Category from Bakery package.


You need to update Dynamo. Once that’s done you can run with the document input set to level 1 which should cause it to iterate over the list correctly.


Hi @Alban_de_Chasteigner

Its working only for plan view but not for sections and 3D views. Or else I am missing something? Is there any other node that works for plan, sections and 3D views ?


For a 3D active view you can use the Bimorph package with a bounding box contains like this :


Thank you! Its working now.



I would like to let you know that the collect of elements from linked file in a 3D active view is now easier with the latest version of the Genius Loci package.