question

Darby C avatar image
0 Likes"
Darby C asked Darby C commented

How to make a source produce 2 types of items

Hi im new to the software, is there a way to make a single source create two items in a batch style quantity?

i.e 40 of item a, followed by 40 of item b.

I have tried using label by percentage but then i am unable to colour the items differently.

If there are relevant tutorials on this topic please point me in their direction.

Thankyou!

FlexSim 21.2.2
source control
· 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.

Ryan Clark avatar image Ryan Clark commented ·

Hi @Darby C, was Joerg Vogel'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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Darby C commented

scheduled source mode or sequence source mode. Set a quantity.

set color by case in On Exit trigger. Switch Condition is item.Type.

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

Darby C avatar image Darby C commented ·

Flex.png

Base Factory.fsm

Hi Joerg,

I have just tried that and it isn't changing the colours.

These are the current settings i have and the error can also be seen that i am receiving along with my file that i am currently running.

Thankyou for your time!

0 Likes 0 ·
flex.png (49.5 KiB)
base-factory.fsm (73.7 KiB)
Felix Möhlmann avatar image Felix Möhlmann Darby C commented ·

The switch value in the "Color by Case" option doesn't necessarily have to be "Type", but rather the label you assigned to the item. In your case, you assign a label called "MyLabel1" in the arrival sequence table. Either change this name to "Type" or use "MyLabel1" in the trigger option.

Furthermore, you haven't actually set any colors for the possible label values yet. Only red as the default color for when the value is not handled otherwise is set.

Add more options by clicking on the green plus icon an define a color for each possible value of the label.

1632819498649.png

If you don't care what specific color each value is assigned you could also just use the "Set Object Color" pick option with "Color.byNumber".

1632819595102.pngbase-factory_fm.fsm

0 Likes 0 ·
Darby C avatar image Darby C Felix Möhlmann commented ·
Thankyou so much!
0 Likes 0 ·