question

Michael avatar image
0 Likes"
Michael asked Joshua S commented

Set capacity of rack using code

Is it possible to set the capacity of a rack using code? I would like to dynamically assign rack maximum capacity as a method of controlling the max inventory of the finished goods bank.

I am also open to suggestions on better methods of controlling finished goods inventory.

Thank you

FlexSim 18.2.2
rackcodeinventory control
5 |100000

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

Brendon N avatar image
1 Like"
Brendon N answered
  1. Model.find("Rack1>variables/maxcontent").value = 29324;
5 |100000

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

Joshua S avatar image
1 Like"
Joshua S answered Joshua S commented

Use this code

  1. getvarnode(Model.find("YourRack"),"maxcontent").value
· 2
5 |100000

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