Override color in view failure


I am working on a new dynamo script. This script needs to change the color of a specific range of structural framings.
I created a list from the model (testing model) en sorted the list by name. In the next node i am adjusting the range of the framings that have to get the right color (green in this case).

Somehow i get an error in the Element.OverrideColorInView node. This is strange, because when i delete the part between this node and the Element.GetParameterValueByName, the script works.
The error in the yellow block: “Warning internal error, please report: dereferencing a non-pointer”

Can someone tell me what i’m doing wrong here?

Hi @m.morsink ,
the node expects elements, you’re giving it parameters. Try this :

1 Like