Apply colour overide to parts


Can anybody advise on how to rectify this?

I have filtered parts out that are between two values and I want to highlight them to the user but I get this message.

Warning: Element.OverrideColorInView expects argument type(s) (Element, Color), but was called with (double, DSCore.Color).

The error message is pretty clear. Your List.FilterByBoolMask is outputting the values of the parameters - not the parts themselves. The parameter is a double number values as the error states. You need to filter the list of parts - not the parameter values - to get the elements.

Many thanks