Interference Check Script improvement help

Hi I have been using this script to get Clash Feedback.

  1. Can anyone show me direction on how to use Elements on certain portion only Faster ways. This script takes 25 minutes to run in one of my Project
  2. How to get what element is clashing with what for example ( Duct -Wall , Pipe- Structural Framing) so that I can set different parameter value
  3. This script is almost useless for Revit 2017. I get crashes. Is there a way to make it usable in Revit 2017 as well.

Thanks

Separate out the relevant clash tests and establish which one takes the longest. Are there any nodes which take longer to compute than others? If so, which ones and how long are they executing for? Is is obvious why, I.e. 800,000,000 possible clashes will take around 30 minutes to compute. Are you saying it works in new versions of Revit but not 2017?

Have you also watch the BimorphNodes Element.IntersectsElement video which explains a simple technique for data matching (‘lacing’ for want of better word) the clashing elements between set A and B into groups? I can see you are not doing this which means you are only working with the clash elements (from set B) not the clash group (the element(s) in set B which clash with each element A) which by the sounds of things, is what you need: