question

Bing L avatar image
0 Likes"
Bing L asked Felix Möhlmann answered

Pickrank of an item in rack

hi folks,In a list ,I want get the pickrank of an item in racks, I set codes like pic below,but it dont work,what the correct codes?thank you all.1697011999416.jpgImage Caption

FlexSim 22.0.16
storage systemslot
1697011999416.jpg (18.2 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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

You can't just cast an object (assuming "value" is the item in question) as a Storage.Slot.Item.

You first construct the Storage.Item class representation of the item. From there you can access the current Slot.Item or the assigned Slot.Item. The current value being the slot the item is in at the moment, while the assigned slot could be a different slot the item is slated to be moved to.

Storage.Item storageItem = Storage.Item(value);
return storageItem.currentSlotItem.pickRank;
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.