Cat avatar image
Cat asked Cat commented

Set Item color by type


I set item color by type as below. But I want to set item1.12.41 use the same color.

How can I set it?


Thank you.

FlexSim 7.7.4
1674723452730.png (55.5 KiB)
· 1
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 Joerg Vogel commented ·
Your university should be updating the FlexSim version. It is not supported anymore.
0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
Joerg Vogel answered Cat commented

You click into field where you now see for example 3. Then you change the number value to 12. And you click into field of command for setting a color and you choose your desired color. You can choose for each row individually a color, this can be even always the same color.

If your Type is called “1.12.41“ for a single item, then you can assign additionally another number label at each item which you read instead of getitemtype(item) and you assign a color accordingly.

· 3
5 |100000

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

Cat avatar image Cat commented ·

Hi Joerg Vogel,

Thanks for your help.

I think I didn't make the question clear.

I input different items as below, I want to set the same of Item name use the same color.

ex. itemtype 1.4 use red, itemtype 3.5.6 use blue..etc.

I understand I can set each color for row.

But if I have 1000 items, I need to crate 1000 row to set.

I want to try if there is a faster way to set it. Thanks.


0 Likes 0 ·
1674728079728.png (32.7 KiB)
Joerg Vogel avatar image Joerg Vogel Cat commented ·

Yes, I understand this. But my second paragraph describe very well how you can achieve this.

For example items A, B, G,T, U get color blue; items D, O, X get color yellow. Then you assign at each item a number label with a custom name for example myColor. Items of Type A,B, G, T,and U. you assign a value of 12 and items of Type D, O, X you assign a value of 8 to the label myColor. Now you can change color by case through label myColor. You will probably need to read the label by getlabelnum(item,“myColor“).

0 Likes 0 ·
Cat avatar image Cat Joerg Vogel commented ·

Thanks for your help. @Joerg Vogel

0 Likes 0 ·