Is there any way, When the simulation finishes all the boxes that are on the conveyor should go to the sink. Finishing the simulation with everything stopped and the conveyor clean of boxes.
Is possible?
Is there any way, When the simulation finishes all the boxes that are on the conveyor should go to the sink. Finishing the simulation with everything stopped and the conveyor clean of boxes.
Is possible?
Hi @Cayo E,
This is definitely possible. If you add this code to the OnRunStop trigger all boxes will be moved to the sink:
Object sink = Model.find("Sink1"); forobjecttreeunder( model() ) { if( isclasstype( a, "Conveyor::Conveyor" ) ) { Object conveyor = a; int nrBoxes = conveyor.subnodes.length; for( int boxId = nrBoxes; boxId > 0; boxId-- ) { Object box = conveyor.subnodes[ boxId ]; moveobject( box, sink ); } } }
I have done this in the attached example model. Is this what you need?
This option does not appear for me, do you have an error? I attached my template I believe you will understand. I need that when the simulation is finished, the objects that are on the conveyor are sent to Sink.
cenario-a-rev03.fsmDetalhes
10 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