I would like to connect in my dispatcher 2 different operators, choosing them from a global table.
I would like to connect in my dispatcher 2 different operators, choosing them from a global table.
Are you wanting to dynamic connect them at reset? or to change this during a model run? There are things the dispatcher does on reset to set up it its connections.It would be more advisable to connect all of your objects up, and then turn ports on and off to objects you're not using or change your pass to logic.
yeah I want to dynamic connect at reset, since my idea is to control the Operators Line up from an excel file, and I have stations with dispatchers, so my global table is reading from my excel file, and I would like that my dispatcher reads its output connections from the global table.
I've attached a simple model that uses the On Reset trigger of the dispatcher to set up connections to any of four operators. The data is read from the global table. Hopefully this helps.
Perfect! thats what I need, just, what can I do, in order for when I click on reset several times, it doesn't always add the ports?
It needs a clear output ports in there I believe.
Thanks in advance!
Yes, good point. You could add a for loop before the one that creates connections and have it do a contextdragconnection() with the "Q" character on all of the objects. Then in your second loop you would only need to create the connections.
Alright, did what you told, that did the job, Thanks!
7 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved