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

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.

Michael avatar image Michael commented ·

Thanks, @Joshua S. Any meaningful difference (error catching, speed, future-proofness, etc) to your answer vs. @Brendon N's answer?

0 Likes 0 ·
Joshua S avatar image Joshua S Michael commented ·

No, they both reference the same information

2 Likes 2 ·

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.