Storage Object Capacity

Storage Object Capacity

maryamh11
Advocate Advocate
159 Views
6 Replies
Message 1 of 7

Storage Object Capacity

maryamh11
Advocate
Advocate

[ FlexSim 23.2.0 ]

Regarding this post, how can I reference a specific object within the storage system, such as Rack1? https://answers.flexsim.com/questions/145983/capacity-of-the-storage-system.html

var storageObjects=Storage.system.storageObjects;


0 Likes
Accepted solutions (1)
160 Views
6 Replies
Replies (6)
Message 2 of 7

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

You can either find it in the model:

Model.find("Rack1");

or in the list of storageobject if you know the index:

Storage.system.storageObjects[2];

Where are you trying to use it?

The example already splits the capacity out by storage object and item:

1695831788397.png


generateRackCapacities.fsm

0 Likes
Message 3 of 7

maryamh11
Advocate
Advocate

I have a very small items (similar to TestTube) and I want to figure out how many of them can fit in a specific type of rack or storage unit. The problem is, my code takes forever to count them in each storage unit, and it often crashes. I have more than 250 storage objects and I do not want to consider all of them. Is there a way to make my code just look at one storage unit instead of going through all of them? How do I find an index of a storage object?






0 Likes
Message 4 of 7

jason_lightfootVL7B4
Autodesk
Autodesk
Use boxes of tubes and multiply by the quantity in a box. You won't be storing millions in the racks individually (I hope)
0 Likes
Message 5 of 7

maryamh11
Advocate
Advocate
Do you mean there is no way to reference to a storage object individually?

I can not do boxing since that also going to check for every storage objects, i want to check just for one storage item type?

0 Likes
Message 6 of 7

jason_lightfootVL7B4
Autodesk
Autodesk

In the following model I changed the functon generateRackCapacities to accept an array of flowitems and optionally an array of racks. So the syntax in a script window would be like this:

Object rack1=Model.find("FloorStorage1");
Object rack2=Model.find("Rack2");
generateRackCapacities(["Tote","Box","Pallet"],[rack1,rack2]);

which gives:

1695838684365.png

generateRackCapacities2.fsm

0 Likes
Message 7 of 7

maryamh11
Advocate
Advocate
perfect, thanks!
0 Likes