question

Claire Krupp avatar image
1 Like"
Claire Krupp asked Claire Krupp commented

Syntax for using pickRank in FindItem query

I want to use the "pickRank" property when I search for an item in a storage rack, to make sure I pull the most accessible pallet first. The manual gives syntax for accessing it in code but not how to use it in a Query.

I've tried a couple of ideas but nothing is working. Here is one example (which doesn't work!):

1624031705996.png
I figured out how to use script to save the pickRank in a label:

Object pall = token.pallet;

Storage.Item SI = Storage.Item (pall);

int pick = SI.assignedSlotItem.pickRank;

(side issue: What happened to the option for typing in script?)

I could then use the label in the query above, but this seems rather convoluted!

Is there a simpler way?


Thanks!



FlexSim 21.1.4
flexsim 21.1.4order pickingfinditemparking point
1624031705996.png (18.2 KiB)
· 1
5 |100000

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

Claire Krupp avatar image Claire Krupp commented ·
Just discovered a problem with assigning the pickRank as a label - if you do it when the pallet is stored the pickRank will always be 1. So when searching later ALL pallets with have the label as 1.
0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Claire Krupp commented

There actually is an option in the dropdown menu for this.

pickrankquery.png

The syntax it pastes in is "item.pickRank" which makes sense as "item" refers to the SlotItems being queried in the "Storage.system.queryItems()" command as far as I know.



pickrankquery.png (20.8 KiB)
· 1
5 |100000

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

Claire Krupp avatar image Claire Krupp commented ·
Thank you @Felix Möhlmann ! That is much simpler than all my attempts! I should check those dropdown menus more often!


1 Like 1 ·

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.