Hi,
I would like to ask if it possible to change conveyor's direction by code (if so, how)?
Thank you.
Martin
Hi,
I would like to ask if it possible to change conveyor's direction by code (if so, how)?
Thank you.
Martin
Hi @Martin K5, was one of Jason Lightfoot's or Matthew Gillespie'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 unaccept and comment back to reopen your question.
You can make the speed negative to reverse the flow during a run.
conveyor.targetSpeed=-1*conveyor.targetSpeed;
Note that any routing is based on the forward direction at reset - so you can't send an item based on it following a route when in reverse. Note that the object should be cast as a Conveyor class.
You can change the direction shown at reset using.
function_s(object, "switchDirection");
but since this uses a function_s call, it may not work in the future and so don't litter your model with multiple calls like this - put it in a user command so you can change it once if needed.
19 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