question

Eric R6 avatar image
0 Likes"
Eric R6 asked Eric R6 commented

Set Flow Item color by label

HelpFile.fsmHello,

I am currently evaluating the software with the Trial version and am having trouble changing the colors of the flow items based on Object's name. I am trying to set the color of my "box" flow items based on the label that was created out of Source1. I have 5 different Products that are generated out of Source1 using and arrival sequence. I tried to follow along with some tutorials and added a Trigger on source 1 to "Set Label and Color" On Exit. This is changing the name of each box however it's keeping them all the same color. Attached is the file I am working with.

Second question, how do I keep the operator from "walking" through the middle of the processors?

Thank you!

FlexSim 20.1.0
flexsim 20.1.0simulation
helpfile.fsm (40.9 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.

gilbert jerald avatar image gilbert jerald commented ·

@Eric R6 You can follow the below two answer to setting color for different item based on the item name. To avoid the operator from "walking" through the middle of the processors add the operator and processor to A Star this will restrict the operator to travel in middle of the processor.

1 Like 1 ·
Jeanette F avatar image
1 Like"
Jeanette F answered Eric R6 commented

Hello,

With the trigger you chose it assigns a new label and sets a color. To examine a label and set a color based on that label you would want to instead choose the trigger set color by case. You can then set it up as follows.

Check out this resource for your question about your operator walking through objects.

https://docs.flexsim.com/en/20.2/Reference/Tools/AStar/


· 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.

Eric R6 avatar image Eric R6 commented ·

Thank you for the responses. I ended up using Jeanette's solution because it was simpler for me with my limited knowledge of the software.

The A* navigation worked great once I included the operators into it...


Thank you!

0 Likes 0 ·
Jacek Diakun avatar image
0 Likes"
Jacek Diakun answered

Hello,

Please see my solution, that works based on last digits in items names (implemented in OnExit trigger in Source Object). It assumes that first digit starts at position four and number may be greater that 9 (I changed them in Source for test purposes).

Regards,

Jack

P.S. The better solution would assume that number of characters in items' names could be of different lengths (e.g. Cab1, Product100), but I have no time to write better version now :-(

helpfile-colors_based_on_last_digits_in_item_name.fsm


5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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