question

Mike Mayer avatar image
1 Like"
Mike Mayer asked Jeff Nordgren converted comment to answer

What is the dot syntax for getting the "max content" of a queue?

I scoured FlexSim Class Reference and could not find it, nor in any dot-leaf autofill. Related to this, is there a full canonical listing of all branches and end-leaves of the entire dot syntax structure? For example, Help > User Manual > Contents > Reference > Coding in FlexSim > FlexScript Class Reference > Object > attrs stops short of the rest of the tree beyond (i.e., document what comes after .attrs). All it shows is an example, what I need are all the tree leaves that are subnodes of .attrs. for example. Thanks.

FlexSim 18.0.7
dot syntax max content
· 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.

Mike Mayer avatar image Mike Mayer commented ·

Thank you both Tanner and Jason.

I wound up using both code fragments, one to get the static maximum content, and the other to compare to see how close we are getting to "full".

Mike

0 Likes 0 ·
Jason Lightfoot avatar image
3 Likes"
Jason Lightfoot answered

And if you wanted the statistic dot notation here's an example:

Object q= model().find("MyQueue"); 
return q.stats.content.maximum;
5 |100000

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

tannerp avatar image
0 Likes"
tannerp answered Jeff Nordgren converted comment to answer

You can try using the following code:

getvarnum(Model.find("MyQueue"), "maxcontent");
· 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.

tannerp avatar image tannerp commented ·

Additionally, the "Commands" list is helpful in learning FlexScript.

0 Likes 0 ·
commands-help.png (125.4 KiB)