question

Kamil KS avatar image
0 Likes"
Kamil KS asked Joshua S commented

Can I set the object Max Conent using code ?

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 ?

FlexSim 19.0.2
max content
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

·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joshua S commented

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

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

Kamil KS avatar image Kamil KS commented ·

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 0 ·
Joshua S avatar image Joshua S ♦ Kamil KS commented ·

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

getvarnode(Model.find("Queue1"), "maxcontent").value=6;
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.