This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.
Messages_CreatingFlowitems
When Itemtype 2 is processed, 10 flowitems are generated downstream to be combined with it. Model Implementation:
Open the Source’s Parameters window, click the SourceTriggers tab, and add a function to the OnCreation trigger using the Set Itemtype and Color option. Edit the blue text to read as follows:
Flowitem: item
Itemtype: duniform(1,3)
Click OK
Open the Processor’s Parameters window, click the ProcessorTriggers tab, and add a function to the OnExit trigger using the Send Message option. Edit the blue text to read as follows:
To: centerobject(current,1)
Delay Time: 0
From: current
Param1: 10
Param2: 5
Param3: 0
Condition: getitemtype(item)==2
Click OK
Open the CreationQueue’s Parameters window, click the QueueTriggers tab, and add a function to the OnMessage trigger using the Create Flowitems option. Edit the blue text to read as follows:
Number to create: msgparam(1)
Flowitem Bin rank: msgparam(2)
Destination: current
Open the Combiner’s Parameters window, click the Combiner tab. Set up the Combiner to receive 10 flowitems from port 2 and join them to the flowitem from port 1.