Thanks for your reply,
First of all - sorry, I made a mistake in original post - i said i used Element.GetFromLinkedFile but I used GetLinkedElements.ByHostViewAndCategory from Data-Shapes.
Do you think this is the component to be used? Why does it not collect all the rooms in a host view (81/250)?
I was thinking about approach you proposed, but i have one problem - my goal is to create dependant views for each floorplan. Sorry I didn’t post the script but it’s really long and that wouldn’t help much. I’ll try to elaborate on logic:
I need to link a file and create floorplans for each level (apply viewtemplates etc). That is done in revit.
Then i would like to gather all linked rooms in each VIEW. Rooms have a parameter that assigns them to a specific flat - so, for example I can have 100 rooms, that are assigned to 25 flats per level/floorplan
I create 25 dependendent views for each flat
I then create crop boxes for each dependent view/flat.
So - talking about approach you proposed, do you think it is possible to collect all rooms, check the level, assign them to views, i wish to create dependent views from? I later need to create bounding boxes for each flat and crop boxes from this.
Is there no way to collect all rooms FROM LINKED FILE in a view (in a model that the mentioned file is linked to)? That would make it a bit easier (also list-managment-wise - multiple views with multiple flats with multiple rooms)
Thanks again for your input!