I would use AnyTrue node applied to level 2 after Geometry.DoesIntersect and then apply this list to FilterByBoolMask node to get a direct list of the original elements, not the solids this way you would also get rid of those warnings that you get because of the -1 index.
Afterwards, you could easily use what @Alien suggested. If you are still struggling, you could provide the graph, along with a small sample file and we can fix it for you
@krzysiektoja just a small heads up… casting to Dynamo geometry to check if elements intersect can be made much faster if you dont cast it to dynamo geometry but use nodes that test only for element intersection…
I made this post where I filter for intersecting elements before I make the actual provision void, maybe that can inspire you.
That is a problem, I maintain the last four versions but that does not include Revit 2019
I am running my project alone and I have probably the largest package for Dynamo and that is maintained pr. version which is quite challenging due to the enormous amount of new requirements in the Revit API over the last couple of years… Not that is a problem and certainly not that Revit should stop developing… but you need to take care of the different versions. On top of this is the Dynamo API also being developed quite a bit and thanks for that… lastly I also cover the IFC exporter, and again IFC is developing.
I am never getting bored
Could you somehow move to Revit 2020, then I can assist you