Is there an attribute on the vehicle that shows the distance that it has travelled? I can see the value in the statistics but I want to access it in process flow to determine the length of path that I just completed.
Is there an attribute on the vehicle that shows the distance that it has travelled? I can see the value in the statistics but I want to access it in process flow to determine the length of path that I just completed.
Hi @Joe Hugan,
You can access the variable you need with the following code:
getvarnum(Model.find("MyAGVName"),"totaltraveldist");
I've created a small example to demonstrate it. The dashboard value is updated every time TaskExecuter1 drops off an item at Queue2. You should be able to manipulate this for your needs. Let me know if you have any questions to clarify this.
16 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