Duct Clash Detection by overiding color

Hello all, I have created a script to override the colors of ducts that clash with other ducts and override the ducts that are in the clear. I keep getting errors in element intersects element and element override in color. The errors that come up are: internal error dereferencing a nonpointer, internal error. If anyone could help that would be great. Thanks

Also the element intersect element should have the element connecting to the node element override color in view, not intersects, I tried that and it didn’t seem to work.

Flatten your lists input into the Element.IntersectsElement node (so flatten the List.Create nodes as they are returning 2D arrays) and ensure the lists contain elements and are not empty.

1 Like

I tried to do that before and it still didn’t work even though the lists aren’t empty.