Further to this post, if I have multiple linked models (which may be on BIM360), what is the best way to reference these elements and get their geometry?
Normally, I would use this method. But it is not scalable and components have to be copied multiple times if there are multiple linked model. Also not sure if this will work with BIM360.
I didn’t look too far but it appears you can’t get linked elements via the view filters, instead they recommend doing an intersect
It is not possible to create a filtered element collector where the document being filtered is a linked document, but the view being filtered is in the main document.
@Japhy I’m not sure why you are saying everything is working as expected as we don’t have a resolution yet.
Graphic elements is failing and de-centralising models is not an option.
Plus, my original question hasn’t been answered. That is, how can I get the geometry of linked elements in a view? If view filtering is an API limitation, what is the alternative?
For example, I could maybe do something like this, but I need to know what categories are visible in the active view rather than specifying a single category. Is this possible?
You can query linked elements by category, but they don’t relate to the host view visibility. The recommendation that i’ve seen so far is to intersect/bounding box filter, although i haven’t had time to read through all the links here yet…
If I use a phase filter it returns all of the elements but then I would need to filter by category. Is there any easy way to select multiple categories (or even reference from a view template)?
Using a bounding box filter is only working on one of the linked files. I suspect it is because the bounding box doesn’t intersect Building B because of a different coordinate system. Not sure how this can be fixed.
I have been messing with linked models and being able to query Geometry by View. Here is a new definition using the current daily build with update Link components. Is this what you are looking for?
Yes, the process seems to work for me. I do not see the things that are hidden in the view. In the example below I can switch between views in the linked model and the hidden objects will toggle on and off depending on the view that I use:
@scottd I’ve managed to replicate this and I just wanted to confirm something.
Your method is getting all of the geometry from a linked model based on the LINKED MODEL’S view, correct? So for this to work, each model would need to have the view setup and filters applied within that model.
What I was after was using the active’s model view settings (inc filters and hidden elements) to return the linked geometry. Does this make sense? It sounds like it might not be possible.