question

Jason P2 avatar image
0 Likes"
Jason P2 asked Joerg Vogel commented

Finding the Rack Object from an Item

I am able to find an item in a rack but I need the rack object can someone look at my query I dont know why it is not working

token.item.as(Storage.Slot.Item).storageObject

FindRackObject.fsm

FlexSim 21.1.2
flexsim 21.1.2
findrackobject.fsm (40.5 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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

The item is a Storage.Item and has got assigned Slot or is in a current Slot. This leads to a reference as Storage.Slot and this has got the property of storageObject

· 3
5 |100000

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

Jason P2 avatar image Jason P2 commented ·

Why does token.item.as(Storage.Slot).storageObject work but token.item.as(Storage.Slot).bayID does not?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Jason P2 commented ·

Are you using an address Scheme?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Jason P2 commented ·

@Jason P2, I don’t know. But as you have already noticed, both properties are of the same warehousing FlexScript sub class Storage.Slot. Because of this strange outcome, I suggest you ask the matter as a question and not as a comment. It might be a bug or someone can describe what is so special about both properties, if you cast directly an item.

0 Likes 0 ·

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.