Change conveyor type color

Change conveyor type color

julio_r
Not applicable
5 Views
1 Reply
Message 1 of 2

Change conveyor type color

julio_r
Not applicable

[ FlexSim 17.1.4 ]

Is there an instruction to change the color of a conveyor type with code or on a trigger?

I am changing it setting the three corresponding nodes value but I was wandering if there is an easier way.

Accepted solutions (1)
6 Views
1 Reply
Reply (1)
Message 2 of 2

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

No, this is the easiest way I could think of:

Color col = Color.red;
treenode conv = model().find("Conveyor1");
treenode typeColor = getvarnode(conv, "type").find("+/drawColor");

typeColor.subnodes[1].value = col.r;
typeColor.subnodes[2].value = col.g;
typeColor.subnodes[3].value = col.b;


Matthew Gillespie
FlexSim Software Developer