So looks like you're using the new AnyLogic 8.7.7 Storage and Storage System (rather than the old Pallet Rack and Rack System).
The help page for Storage tells you that the constituent storages are held in an array called storages
, and that getSlot
takes integers for the rack/bay/shelf indices getSlot(int rack, int bay, int shelf)
, where these are zero-based (so rack 0 is the first rack, not rack 1).
So you'd use something like
storageSystem.storages[0].getSlot(0, 0, 0)
for the first storage in the system and the first rack/bay/shelf therein.
There's a wider question of whether you actually need to do this for what you want your model to do. (Add some detail to your question if you want to explore that angle.)