question

fortnasim.administrator avatar image
0 Likes"
fortnasim.administrator asked fortnasim.administrator commented

Process Flow create object and change color for all objects

I'm still working on my first model, and I've tried different suggestions in previous posts (using colorarray, changing color based on trigger in queue, custom code, change visual, etc.) but I can't seem to get ALL of the created objects to change color in the replenishment portion of my model. Also, I think this *may* be why the replenisher takes the first box to the rack and then stops without replenishing the other boxes. I've only got replenishment set up for the "yellow" boxes at this point. Also, I don't understand why I'm getting the "label" errors in the order picking portion. Any help is appreciated!OrderPicking with Replen 6-9.fsm

FlexSim 20.1.1
flexsim 20.1.1change visual of all created objectslabel errors
5 |100000

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

1 Answer

·
tannerp avatar image
0 Likes"
tannerp answered fortnasim.administrator commented

@fortnasim.administrator,

I took a look at your model and made a few changes. I suggest using Color.byNumber() rather than colorarray() because the latter is deprecated.

Additionally, there were a few other random errors I fixed, like the Replenisher not having a load or unload time value. The one thing that I can't figure out is this "custom" node on the Process Flow. I'm not sure what's trying to access this and why it's there, but the model doesn't like it.

Updated model: orderpicking-with-replen-6-9 (1)_1.fsm


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

fortnasim.administrator avatar image fortnasim.administrator commented ·

Thanks for your response, Tanner. In your update, the boxes in the replenishment queue are still not changing to yellow. I originally use the method you suggested, Color.byNumber(); however I could only get the first box to change colors and wondered if I needed a subflow to color each of the 14 boxes created. Also, the replenisher still just delivers one box and stays at the rack. Do you know why? I was basing my model off of the example warehouse model here: https://answers.flexsim.com/articles/71515/2019-update-2-warehouse-demo.html. So, maybe I'm not using the custom code correctly.

0 Likes 0 ·
tannerp avatar image tannerp fortnasim.administrator commented ·

@fortnasim.administrator,

Sorry, I didn't notice that your item label was an array. Yes, a sub flow would be the most efficient way to change color on all items. Same thing with the Replenisher delivering only one box. You'll need a sub flow there as well, most likely. I've set up the color change sub flow to run a number of tokens based on the length of the "item" label array.

Let me know if this works better.

orderpicking-with-replen-6-9-1-1_1.fsm

0 Likes 0 ·
fortnasim.administrator avatar image fortnasim.administrator tannerp commented ·

Thank you so much for your help! Trying to get my learning curve up and appreciate the tips!

0 Likes 0 ·

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.