question

TYLin avatar image
0 Likes"
TYLin asked Iago MF edited

calculate based on list value

Hi,

I want to break down transport commands into loading and unloading tasks and then arrange the execution order for multiple commands. My approach involves placing items into a list and calculating AGV travel distances. However, I am currently facing an issue where, during distance calculation, I don't know how to retrieve the TransportType from the list correctly. Using value.TransportType fetches the numerical value from the item, but it has already been updated and does not represent the value I want.


In simple terms, I would like to know how to calculate the distance in the list based on the TransportType within the same row.


Alternatively, is there a better approach for my situation? Thank you for your assistance.

1704956822083.png1704956843257.png

FlexSim 23.2.3
list
1704956822083.png (47.7 KiB)
1704956843257.png (47.4 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Iago MF avatar image
0 Likes"
Iago MF answered Iago MF edited

Hi!

It's better to use a label field and check Dynamic (you have to set that label on what you are pushing to the list). You can also use an expression and check Dynamic, but you can't read an expression value from another expression field, so in this case it's better to use a label field to be sure that label exists.

I hope it helps you!

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.