IntersectsElement

So I want to check for intersections between some walls and some firedampers. I tried to use Bimorphs node IntersectsElement, but apparently I also need to use either LinkElement.OfCategory or LinkElement.Element.

I have tried LinkElement.Element, but I can’t get it to work. I would rather not use LinkElement.OfCategory because I want to only get walls from the active view.

Are there any way I can use this IntersectsElements and still only get walls from the active view?

Thanks

Hi @mee whitch revit version are you in ?

Hi @sovitek

I am in 2022

Get Id’s and use them to get LinkElements with that Id’s.

But it would still find all walls in the linked model before filtering by ID’s, right?

I don’t want that because the model is too big and heavy for that.

Did you measure exact times? It’s rather fast, as i remember.

I couldn’t measure the time because Dynamo and Revit is just “freezing” every time I try to run the script with all the walls.

havent tried but sparrow have a node link.element.visible in view, and then filter for walls…not sure if it could help

1 Like

Freeze Element.IntersectsElement at first.

I ended up using BoundingBox.GetElementsIntersect in stead of Element.IntersectsElement. That worked perfect with SelectByCategoryInHostView :slight_smile:

1 Like