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 |
|
Downloads |
Q&A Using Flexsim and building models |
#1
|
||||
|
||||
How can I control spatialx,y,z value onLoad trigger in TaskExecuter?
I want to relocate the items in TaskExecuter.
So I used setloc() command to do it onLoad trigger in the first TaskExecuter, but in the next TaskExecuter the items can't be relocated using setloc. So I want to use spatialx, y, z attribute after finding them in the tree. But set(spatialx(item), x_pos) command is not effective. How can I control it onLoad trigger? I want anyone's help. |
#2
|
|||
|
|||
Sounds like the OnLoad trigger of the second TaskExecuter is not being executed. Have you confirmed that it is?
Can you post a small model of your issue? I'm guessing you are passing an item from one TE to the next, and depending how you do it the OnLoad may not fire. |
#3
|
||||
|
||||
Thank you for your concern. Kris
I attach the example model of my working.
The model has a problem not finished. The queue is displayed in high place and I don't know the reason. This problem should be fixed and my above issue is to display the item correctly relocated in the second taskexecuter onLoad trigger. I hope your answer. Thanks. |
#5
|
|||
|
|||
Your model confirms that the OnLoad is not being executed. I don't think the OnLoad trigger is supposed to fire because you told the first TE to unload to the second TE... so technically the second TE is not doing the loading.
You should probably be using a coordinated task sequence, or at least a sub task in your model. However to answer your question in following what you have done, if you really want to use the OnLoad you can manually call the OnLoad after the unload task in your task sequence: inserttask(ts,TASKTYPE_NODEFUNCTION,getvarnode(teS huttle,"loadtrigger"),item); |
The Following User Says Thank You to Kris Geisberger For This Useful Post: | ||
syseo (06-22-2012) |
Thread | Thread Starter | Forum | Replies | Last Post |
How to using TaskExecuter ... | Wen Hsing Huang | Q&A | 4 | 05-29-2011 07:52 AM |
Dispatcher: Which TaskExecuter did the task? | Stefan Trabut | Q&A | 3 | 04-05-2011 05:49 AM |
a question about taskexecuter | oliver xie | Q&A | 1 | 01-18-2011 03:19 AM |
How to transfer a flowitem from a taskexecuter-team to another taskexecuter-team? | Frans Zeng | Q&A | 12 | 05-20-2010 11:23 PM |
TaskExecuter should unload more then one item...How? | TilmanDHL | Tips and Tricks | 1 | 01-28-2009 01:54 AM |