I want to limit the items in my gravity flow rack. I only want to items per slot in my rack. I tried to customize the code of "Slot Assignment Strategy" but it didn't work:
Can someone help me?
I want to limit the items in my gravity flow rack. I only want to items per slot in my rack. I tried to customize the code of "Slot Assignment Strategy" but it didn't work:
Can someone help me?
Hi @gust-flex, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.
Did you add the "items" label to the slot. Because that's not a default expression. Other than that the code looks like you are trying to count the amount of items of a specific type in the slot. But due to the matching labels condition items with a different type can't be in the slot in the first place, no?
You can check how many items are assigned to a slot through the slotItems property of the slot class. So to limit the total quantity per slot you would just add "slot.slotItems.length < 2" to the condition.
If I add the "slot.slotItems.length <2" it still doesn't work.. here is my testfile.
The slot is assigned in Process Flow, so that's where you have to add the condition.
15 People are following this question.
© 1993- FlexSim Software Products, Inc. All Rights Reserved.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.