ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
How to make a custom GUI for creating an item ?
This is pretty straight forward but I unable to figure it out. I want to create a simple GUI with a create button on it. I want that whenever I hit this button, only then should the source create an item. If someone could attach a simple model demonstrating this it will be a great help.
|
#2
|
|||
|
|||
Simple suggestion that may work in your instance but won’twork in all instances (for example creating multiple objects at the same timeis not supported):
|
The Following User Says Thank You to mark.gormley For This Useful Post: | ||
mearjun (05-30-2013) |
#3
|
||||
|
||||
Or you could use a Queue instead of a Source. In the Queue's OnMessage trigger, select the Create Flowitems picklist option. Then send a message to the queue from the OnPress of your button.
|
#4
|
|||
|
|||
Thanks
Thanks for the example. For now I am using the code that you used in your model, but for the sake of understanding, what exactly is happening on the message trigger of the queue. I did not get the part where you have used the for command. Also, I am unable to understand how applicationcommand() works.
|
#5
|
||||
|
||||
You don't have to understand exactly how it works. It is a picklist option that was selected from the dropdown menu; you can just use it.
But just fyi: That applicationcommand() is setting the flowitem's creationtime and updating the default tracked variables (WIP and TimeInSystem) for the newly created flowitem copy. |
#6
|
|||
|
|||
Thanks.. the only reason I want to understand it in detail is so that I can write more advanced code in case I need to do something specific.
|
The Following User Says Thank You to mearjun For This Useful Post: | ||
Raphael Smith (06-06-2013) |
Thread | Thread Starter | Forum | Replies | Last Post |
What is involved in creating new TASKTYPE_ commands | Vadim Fooks | Q&A | 0 | 05-05-2013 03:11 PM |
Creating new variables to analize the model | Flavio Brito | Q&A | 1 | 06-02-2010 03:16 PM |
how to add custom draw code trigger in flow item | LINWEIXU | Q&A | 10 | 09-10-2009 12:19 AM |
the accurate time of creating a TS? | qin tian | Q&A | 1 | 05-26-2008 06:23 PM |
Creating fsm-Files | Ralfi | Q&A | 4 | 10-16-2007 06:07 PM |