Is there an easier way to filter for family instances inside of a room that is in a linked file? Right now I am using a collector for all rooms in linked document, and also a collector for all family instances in my main model. Getting the Location point of all the family instances. Then using the rooms .IsPointInRoom() method to see if the family instances point is in the room. This seems very inefficient, as I have to iterate through both collectors.
I saw a post on this that used a bounding box of the room and applying a filter to the family instance collector, but I dont think this will work because the room and the family instances are in different models / documents.
Thanks,
Solved! Go to Solution.
Solved by cwaluga. Go to Solution.
I would try the bounding box thing first. In case this works, you can add a ElementIntersectsSolidFilter with the solid representing the given room. The latter can be obtained from the ClosedShell property.
Check this if it helps..
Using Worksets in the Linked file, and placing elements in
worksets to use it further to filter..
Best luck
Can't find what you're looking for? Ask the community or share your knowledge.