In FlexSim 2020, I had this code to change the colors of a conveyors:
Object objeto = model().find("/"+nome_objeto);
treenode color_node = node(">variables/localType/drawColor", objeto);
Array cor = [0,255,0];
setnodenum(rank(color_node, 1), cor[1]);
setnodenum(rank(color_node, 2), cor[2]);
setnodenum(rank(color_node, 3), cor[3]);
How can I do this action in FlexSim 2021, since during the process of upgrading from version 2020 to version 2021, many conveyors in my process no longer have the node ">variables/localType/drawColor", for unknown reasons.