Interference filter from linked file

I’m trying to get the list of elements that are clashing from a linked file. It works just fine if I’m checking on the same document but it returns me an error when I’m checking from a link


I’m sorry, I found the issue in the code. I was referencing the wrong document in the interElem loop (the active document instead of the link document)