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
|
|||
|
|||
Problem on Itemtype id
I am now trying the gate part, in my test, I hope different type of containers, like Empty/Laden/No container on trucks can have different inception time when they go through the gate house, so I try to assign different container type with a itemtype id. However, I don't know how to set the container id. When a truck is generated by the gate planner, all container id is 0, but the box generated by a source can have different id. Does anyone know how to set id to the container on trucks that generated by the gate planner? Many thanks.
|
#2
|
||||
|
||||
In a trigger on a Gate object, you can reference the truck using "item".
You can use the content(item) command to determine whether the truck has a chassis and/or a container. If the truck doesn't have a chassis, content(item) will be 0. If the truck has a chassis and no container, content(item) will be 1. If the truck has a chassis and a container, content(item) will be 2. If the truck has a container, you can get the container type (This has a special meaning in CT) using this command: Code:
getcontainerstat(getcontainerid(rank(item,2)),CONTAINER_STAT_TYPE) |
The Following 2 Users Say Thank You to Phil BoBo For This Useful Post: | ||
Jorge Toucet (11-04-2011) |
#3
|
|||
|
|||
Hello, I am now trying another way to simulate the gatehouse inception process. I setup a model; use the source to generate a box with type 1 to 4. In this model, I hope different types of box will have different distributions in the processor. But I don’t know how to set it in the processor. Many thanks for advice.
|
#4
|
||||
|
||||
Use the "Cases by Value" pick option for the Process Time and type the distributions into each case.
|
The Following User Says Thank You to Phil BoBo For This Useful Post: | ||
Jack Lai (11-07-2011) |
Thread | Thread Starter | Forum | Replies | Last Post |
Process Maximum Content (depends on itemtype) | shafizad | Q&A | 4 | 03-04-2015 07:53 AM |
Dynamic Scripting itemtype | shashanktrivedi | Q&A | 3 | 05-25-2011 10:44 PM |
Can i divide a itemtype? | wilmermoncada | Q&A | 2 | 11-27-2009 08:41 AM |
Get itemtype for a flowitem in a task | KelvinHo | Q&A | 4 | 10-21-2009 09:47 PM |
how to get number of itemtype | Vic Li | Q&A | 11 | 08-19-2009 11:20 PM |