Hi
I want to query slot by classtype of storageobject. How to write the query sentence?
The usual query sentence is "Variant slots = Storage.system.querySlots("WHERE slot.levelID = "+level_id,0);"
Thank you.
Hi
I want to query slot by classtype of storageobject. How to write the query sentence?
The usual query sentence is "Variant slots = Storage.system.querySlots("WHERE slot.levelID = "+level_id,0);"
Thank you.
@xu.chunqi, can you be a bit more precise what you want to achieve? What is level_id? - A label, a previous level. Do you want to get as a result an array of slots ordered in a special design? Thanks!
I suggest you choose the rack by name:
Variant slots = Storage.system.querySlots("WHERE slot.storageObject.name = 'FloorStorage1'",0);
or pointer
Variant slots = Storage.system.querySlots("WHERE slot.storageObject = $1",0,Model.find("FloorStorage1"));
or if you have more objects then with clause IN
Array myRacks = [Model.find("FloorStorage1")]; Variant slots = Storage.system.querySlots("WHERE slot.storageObject IN $1",0,myRacks);
12 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