question

Unax Urrutia avatar image
0 Likes"
Unax Urrutia asked Jason Lightfoot commented

RACKS CAPACITY

Is it possible to obtain the number of items could fit in the racks I have in the model?

FlexSim 23.2.3
racks
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 Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

Check the script used in the answer to this post, which will populate a table with each rack's capacity for each FlowItem you include in an array.

· 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.

Unax Urrutia avatar image Unax Urrutia commented ·

Thanks for your answer @Jason Lightfoot

It is more interesting the way that is responded in your asnwer. In my case I have some slots divided by cases. Each case has a different size that is run in a Global Table.


Is it posible to have the answer of storage capacity in order to the size of the Global Table or the cases created in the source?

In case, I attach my model.

Thanks in advanced.

EIKA_Osoa_autosave.fsm

0 Likes 0 ·
Unax Urrutia avatar image Unax Urrutia commented ·

Hello @Jason Lightfoot


In order to this answer https://answers.flexsim.com/answers/146026/view.html

In my simulation case I don't know how to run the code

In my case I have 3 different size of items displayed in a Global Table

Therefore, I want to see capacity of racks in order to each Rack and for each size (in the entire rack the same size in all cases)

I dont't know if I have been clear and you could help me.

Thanks another time,

Regards,

Unax

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Unax Urrutia commented ·

It looks like you only have 4 different sizes, so we can express the capacity in terms of those (eg. A, B, C, D):

1743684324614.png

Model attached where I created the flowitems BoxA-D to represent those sizes, and added the command 'generateRackCapacties' along with the script to use it:

Array flowitemnames=["BoxA","BoxB","BoxC","BoxD"];
generateRackCapacities(flowitemnames);

eika-osoa.fsm

0 Likes 0 ·
1743684324614.png (9.3 KiB)
eika-osoa.fsm (179.6 KiB)
Paula LG avatar image
1 Like"
Paula LG answered Paula LG edited

Hi Unax,

To do so, use the following script:

Storage.system.querySlots("").length

If you only want to count slots that meet a specific condition, write your desired query instead of the empty string.

I hope it helps!

5 |100000

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

Unax Urrutia avatar image
0 Likes"
Unax Urrutia answered Felix Möhlmann commented

Thanks for your answer Paula.

Where I have to put that script?

Sorry if it is so simple the question, I am starting with the software...

· 1
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·
You'd put that whereever you need to know the number of slots. If you just want to check this manually you could run it in a script console.

Note that this returns the number of slots. If a slot can fit more than one item you need to multiply the returned value by how many items can fit into a slot.

1 Like 1 ·