question

Luis Fernando avatar image
1 Like"
Luis Fernando asked Bernard L2 commented

Enable to use parameters for the "Max Content" and "Tatget Batch Size"

Hello FlexSim team,

This message is to the FlexSim developers, it would be really good to make possible to use the parameter variable to the "Max Content" and "Target Batch Size".


For example use: Model.parameters["Parameter_1"].value

flexsim.png

FlexSim 23.1.2
parametersdeveloperprocessor content
flexsim.png (25.0 KiB)
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·
@Luis Fernando, hi, what do you want to achieve. Both are already variables of an attribute tree for their objects. So you are able to get access to them by Flexscript code. You can read and set them. So I don’t understand what do you exactly request? Is it a secondary or tertiary way to read a variable? If you want to use them in experiments or optimizations, then you can vary their node values there.
0 Likes 0 ·

1 Answer

Matthew Gillespie avatar image
2 Likes"
Matthew Gillespie answered Bernard L2 commented

While it's true that you can't set the object's Max Content field to use a parameter, you can add a parameter that sets an object's property or the property on all objects in a group. For example, in the attached model the first parameter changes the Max Content of Queue1 and the second parameter changes the Max Content of the other 3 queues (all the queues in the Queues group).

MaxContentParameter.fsm


· 3
5 |100000

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

Bernard L2 avatar image Bernard L2 commented ·

Just trying to add to the discussion, maybe he is requesting the ability to write the statement as he put it ( Model.parameters["Parameter_1"].value) directly in the Queue properties "max content" field, instead having to use flexscript code.

This is something I struggled a bit in my FlexSim transition from ProModel years ago which has that ability. There you can writhe various different types of data (such as tables, global variable, labels, etc. ) directly in their properties fields. I believe that feature makes it easier and faster to input data to objects and is more intuitive, specially for people initiating in FlexSim. Would indeed be a very nice feature to have;

Although Flexscript code gives you the power to do it with several object at the same time once you have all the info properly prepared and already have a better fluency in flexscript, model triggers, user script it is good for big projects, that good, but for small and fas projects it gets a bit as a overcomplicated and time demanding compared to just write directly in the propriety field.

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Bernard L2 commented ·

You don't have to use FlexScript code to set a Parameter's value to an object's property. There's a sampler on the Parameter's value popup:

1693919327564.png

For properties that are evaluated as script to determine their value, you can "write various different types of data directly in their properties fields" (and there are dropdown menus for selecting Parameters in those types of fields). But for properties that are simply checkboxes or numbers, such as Max Content, then you need to set that number from someplace else, such as the Parameter Value's On Set.

1693925796260.png

1 Like 1 ·
1693919327564.png (308.1 KiB)
1693925796260.png (70.2 KiB)
Bernard L2 avatar image Bernard L2 Bernard L2 commented ·

indeed it already works in flexscript fields but as you said not in checkboxes or only numbers fields although some of them as you shown can be done thru parameters, but i guess not by table, global variables, etc. (couldn't do it here) and i believe it is the original request from the poster.


0 Likes 0 ·