ATTENTIONThis 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. |
flexsim.com |
#1
|
||||
|
||||
The way to use item label in Combiner object...
I want to set the label of the combined item of combiner to be dependent on the flow item from port 2.
One palette comes from the port 1 and twenty flow items with same labelname from port 2 and then they are packed. When the packed item palette exit, the label of the packed pallette should be set to be same with the twenty flow items label from port 2. For example, if the label of twenty flow items from port 2 is 1, the label of the packed item should be 1. If twenty items are 2, the packed item should be 2. How can I control it? Please help me. |
#2
|
|||
|
|||
Hi,
Are all 20 flow items from port 2 going to have the same label value? If they are then this code on the OnExit trigger will do the job: treenode pallet = item; treenode firstItemInPallet = first(item); double palletLabel = getlabelnum(firstItemInPallet,"labelName"); setlabelnum(pallet,"labelName", palletLabel); You could also simplify that down to this: setlabelnum(item,"labelName", getlabelnum(first(item),"labelName")); which will do exactly the same thing. |
The Following User Says Thank You to mark.gormley For This Useful Post: | ||
syseo (05-05-2011) |
#3
|
||||
|
||||
Quote:
I will try to do it. |
Thread | Thread Starter | Forum | Replies | Last Post |
Flow item in object in time 0 | KelvinHo | Q&A | 17 | 04-17-2012 09:12 AM |
Add Label | Nischith Kashyap | Q&A | 4 | 03-14-2011 07:16 PM |
Label in Object - Suggestion for next version | Gleny Rodriguez | Gripes and Goodies | 1 | 02-03-2011 01:06 PM |
Record label | manuel fernandez | Q&A | 1 | 03-21-2010 12:29 PM |
Is it possible one object comprised of the function of "combiner" and "separetor"? | Vic Li | Q&A | 1 | 08-19-2008 04:41 AM |