question

Luis Fernando avatar image
0 Likes"
Luis Fernando asked Luis Fernando commented

Create object by clicking a button

Good day,

I would like to create an object in a Queue by clicking a button. Could you provide us an example in FlexSim with this configuration?

Thank you,
Luis V.


1667325801063.png

FlexSim 22.2.2
object creationdashboard buttonon message create flowitems
1667325801063.png (121.1 KiB)
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

Julio R avatar image
0 Likes"
Julio R answered Luis Fernando commented

Hello Luis,

Here is a simple example for creating a queue with a dashboard button.

As you can see, we put a code snippet on the On Press trigger with this command:

createinstance(library().find("?Queue"), model());

Example Create Queue From ddashboard.fsm

To use it just unselect the "edit" button on the dashboard and you will create a queue each time you press the botton



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

Luis Fernando avatar image Luis Fernando commented ·

Thank you Julio!

0 Likes 0 ·
Jay Khedekar avatar image Jay Khedekar commented ·
Can you post this with version 21.0?


0 Likes 0 ·