I'm currently working on a project where I'm stuck. We are trying to make a program that distributes our entities from one buffer into three different buffers depending on their names.
Is there any way we could simplify this or fix the code so it actually distributes the way we want to. We're not very used to programming in Plant Simulation 13 which makes thing a bit hard.
Thanks in advance!
We've tried that but didn't get it to work. What is our settings supposed to be? Our attributes are AA, BB and CC, but they're all moved to the same buffer anyway. We aren't really sure what to fill in the value column in the exit strategy list either.
You're method is almost right. Just remove the 'cont' because '@' is already referring to the MU:
if @.name = "AA" @.move(BufferAA) elseif @.name = "BB" @.move(BufferBB) else @.move(BufferCC) end