Hello,
I'm quite new to GUI Builder, and I want to create a workpiece
from the Source1 by clicking the button created in GUI Builder.
How to I do that?
Do I code in OnPress?
In that case, how do I code it?
Thank you in advance,
Ryosuke
Hello,
I'm quite new to GUI Builder, and I want to create a workpiece
from the Source1 by clicking the button created in GUI Builder.
How to I do that?
Do I code in OnPress?
In that case, how do I code it?
Thank you in advance,
Ryosuke
Yes, write custom code in the OnPress of the Button.
You can use the insertcopy() command to create flowitems. For an example of how this command can be used, see the "Create Flow Items" pick option in a Queue's On Message trigger:
Hello @phil.bobo
Thank you for you kind reply.
Could you also help me to send OnMessage to the Queue1 from the GUI OnPress?
(I'm just a month user of FlexSim, and I'm still having difficulty understanding the relation...)
Thank you in advance
You don't need to "send OnMessage to the Queue1 from the GUI OnPress".
I was just pointing you to an example of code that creates flowitems. Just look at the code to see what commands it is using and then use those commands. Or copy/paste the code from one place to the other and then modify it according to your needs.
Good day @Phil BoBo, I am really interested on this example but with a lot of difficult to perform on FlexSim. Phil, do you have a .fsm example of this object creation with pressing a button/ Send OnMessage to a Queue?
I will appreciate,
Thank you,
Luis V.
@Luis_fernando Vr we answered your related question with a dashboard example in v21. That gave an example of creating a fixed reaource (queue) are you needing to create flowitems instead? If so here's an example:
17 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved