Can I set the object Max Conent using code ?

Can I set the object Max Conent using code ?

kamil_ks
Not applicable
12 Views
3 Replies
Message 1 of 4

Can I set the object Max Conent using code ?

kamil_ks
Not applicable

[ FlexSim 19.0.2 ]

Hello,

I was looking in the Tree but there was only possibilites to get max content value from the model. Is there any possibility to set max content value from table e.g on model reset ?

0 Likes
Accepted solutions (1)
13 Views
3 Replies
Replies (3)
Message 2 of 4

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

It is a variable in the tree. Then you can set the variable value. If you change this value and you use the transport option to get flow items into the object, please take into account that this variable is evaluated in the combination of the variable "nroftransportsin".

Message 3 of 4

kamil_ks
Not applicable

What command should I use to set this variable ? For example I want to set maxcontent of this variable below for 6.

model().find("BL4>variables/maxcontent") = 6

0 Likes
Message 4 of 4

joshua_s
Not applicable

This is an example for changing the max content of a queue

getvarnode(Model.find("Queue1"), "maxcontent").value=6;