Get rooms in linked file


#1

I am trying to get rooms from a linked model. It should be pretty straight foward and has been dicussed a few times already:

http://dynamobim.org/forums/topic/get-all-elements-from-linked-model-by-archi-lab/


But I’m just getting null. Any ideas as to why this would be the case?


#2

Try this.

PS Just realised you pass elements instead of category: delete “all elements of category”


#4

Ahh thanks. rookie error


#5

Hi guys,
@Tomasz_Puchala is there an easy way to extend this script to get rooms from several linked files?

I have used the Springs.Collector.LinkedInstanceElements but that seems to work with one linked instance at the time?

Thanks,
Andrea


#6

HI @Andrea_Botti , and happy anniversary :slight_smile:
it seems to work in a straight forward way :


#7

@Mostafa_El_Ayoubi thank you very much for your reply. However, I do not get the two-tiered list you get. Do you have any advice on why that could be?

Andrea


#8

I had the same problem but when I set the LinkInstance input’s listing to ‘Use Levels’ (at L1) and ‘Keep List Structure’ it pulled all rooms.


#9

Has anyone then taken this information and written it into a parameter in your working file? I am trying to do that without any such luck.