I have a source which does batch creation. But I would like for the program to start with 3 arrivals at time 0 instead of 1, is this possible?
I have a source which does batch creation. But I would like for the program to start with 3 arrivals at time 0 instead of 1, is this possible?
Hi @night, was one of David Chan's or Jason Lightfoot's or Joerg Vogel's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 comment back to reopen your question.
The batch trigger doesn't work when you have Arrival at time 0 checked. You can see from its code that it explicitly checks that the time is not zero. I would instead use a regular interarrival time and create item duplicates on the OnCreation trigger. This prevents creating multiple events at the source which you may/not want.
@night use three source.
David
You can use an event conditionally to create 2 more items. This is a user defined logic. You can build it in process flow by a scheduled source activity and a create object activity. Or you do it by source code in an On Creation event in a source object by a command createobject. I suggest you take a look into the manual reference section for coding to find more needed commands, properties and methods.
I would like to add it to my source code, but my on creation event already has a code in place. How do i add to it? At the same time there isn't a createobject command. I was thinking of using a for loop
but I am unsure what to input on the inside of the for loop, could you advice the coding for that?
I think you should find a proper command or method yourself. Typically you need a function with a phrase of copy, create or insert. You find them in Flexscript Class or Command Reference. Learning works with a standard method called bottom up.
15 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