question

jacopo-r avatar image
0 Likes"
jacopo-r asked jacopo-r commented

Change "Storable Slots" with code

Hi all,


I would like to make the bottom level of my rack storage "non storable". Like in the picture below. Is there any way to do it with code?

Thanks!

1704986630592.png

FlexSim 23.1.3
rack storagestorable slots
1704986630592.png (26.3 KiB)
5 |100000

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

1 Answer

·
Paula LG avatar image
0 Likes"
Paula LG answered jacopo-r commented

Hi Jacopo,

Try using this code:

Storage.Object rack = Model.find("Rack1");
int i=0;
int numBays = rack.bays.length;

for (i=1; i<=numBays; i++){
treenode slot = rack.bays[i].levels[1].slots[1];
slot.find("isStorable").value = 0;
}

I hope it helps!

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

jacopo-r avatar image jacopo-r commented ·
Thank you @Paula LG :)
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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