question

Daniele S avatar image
0 Likes"
Daniele S asked Kari Payton commented

Set color by case

Hello,

How can I set the color of an part?

I have a processor and I would change the color of the part (on exit of the processor) according to a percentage. Red for the 95% of components, Orange for the remaining 5%. So I want assign a label to that object according to the color because, at the end, I have to perform a separation.

Thanks for the support

Daniele

simulation-model-with-batches-color.fsm

FlexSim 17.0.12
label assignmentcolor changecolor
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Kari Payton avatar image
0 Likes"
Kari Payton answered Kari Payton commented

@Daniele S change the value on your "Set Color by Case" trigger to item.Type.


set-color-by-case.png (314.8 KiB)
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

You can assign instead of a single label value an array. Each time you change the value of a color, you add a value to the array in front of the array. At the end of the process you evaluate the array.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.