How can I reset the totalTravelDistance on task executer?

How can I reset the totalTravelDistance on task executer?

martin_k5
Not applicable
46 Views
2 Replies
Message 1 of 3

How can I reset the totalTravelDistance on task executer?

martin_k5
Not applicable

[ FlexSim 23.1.0 ]

Hi,

I would like to ask how can I reset the totalTravelDistance on task executer? I would like to cumpute the totalTravelDistance for each task individually that is fullfiled by the load and unloud action. When I tried to accomplish this the distance accumulates.


Thank you,


Martin

0 Likes
Accepted solutions (1)
47 Views
2 Replies
Replies (2)
Message 2 of 3

Paula_LG
Participant
Participant
Accepted solution

Hi,

I have tried this code and it seems to work:

Model.find("/TaskExecuter1>variables/totaltraveldist").as(TrackedVariable).reset();

I hope it helps!

Message 3 of 3

martin_k5
Not applicable
Yes, it works perfectly!


Thank you.

0 Likes