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
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
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
Why does token.item.as(Storage.Slot).storageObject work but token.item.as(Storage.Slot).bayID does not?
@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.
14 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved