<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Loading items by type from a queue to a truck in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/loading-items-by-type-from-a-queue-to-a-truck/m-p/13592372#M87962</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.2.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;H&lt;SPAN style="font-family: Arial,Helvetica,sans-serif;"&gt;i, everyone! &lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN id="isPasted" style="color: rgb(55, 65, 81); font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: pre-wrap; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;I'm currently working on a simulation where a different truck assigned to a customer arrives at our warehouse every hour. During that hour, the truck is supposed to pick up specific items from a queue for that particular customer. The queue is already programmed so the items that are here corresponds to the customer assigned to that hour. &lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(55, 65, 81); font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: pre-wrap; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;For instance, between 8 and 9, the queue exclusively prepares products of type 9 and there's a truck type 9 that picks them up. Initially, I thought the truck arrivals to align with this process in the following manner:&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(55, 65, 81); font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: pre-wrap; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701308775857.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521272i87E1E04A10EDE537/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701308775857.png" alt="1701308775857.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;The triggered event is the entry to the queue where all the items of that type are ready to be collected. For the Decide I thought setting this condition:&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701307788144.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521273iC02C4CCD07181BE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701307788144.png" alt="1701307788144.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Basically if it comes to the queue a product that doesn't match with the customer assigned to the truck, the latter just leaves. &lt;STRONG&gt;The problem is that the first bus leaves but when the next one arrives (product "Cliente" 10), it doesn't pick up the products that are ready:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701307905953.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521275i57DEA489197D78CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701307905953.png" alt="1701307905953.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
 &lt;P&gt;That's why when I'm going to check the statistics, at 3600 s there's no product sent.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701307573212.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521274i34C868201F977107/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701307573212.png" alt="1701307573212.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;I think there's a problem with the conditional or its position in the process flow. I also tried with lists as you can see:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701308455957.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521276iE355553C59290DAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701308455957.png" alt="1701308455957.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;However there are some errors:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701308489842.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521278i24D14B0B9405E950/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701308489842.png" alt="1701308489842.png" /&gt;&lt;/span&gt;&lt;BR /&gt;So my question is:&lt;BR /&gt;1. ¿could you help me develop a simple way to do this? The important thing is that when the next truck arrives it picks all the products corresponding to its customer and waits for an hour until the other truck comes.&lt;BR /&gt;I've been working really hard but there are lots of new concepts that are a bit difficult to understand for me.&lt;/P&gt;
 &lt;P&gt;Thanks in advance for all your help!!&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 30 Nov 2023 01:44:27 GMT</pubDate>
    <dc:creator>Xiomara</dc:creator>
    <dc:date>2023-11-30T01:44:27Z</dc:date>
    <item>
      <title>Loading items by type from a queue to a truck</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/loading-items-by-type-from-a-queue-to-a-truck/m-p/13592372#M87962</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.2.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;H&lt;SPAN style="font-family: Arial,Helvetica,sans-serif;"&gt;i, everyone! &lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN id="isPasted" style="color: rgb(55, 65, 81); font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: pre-wrap; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;I'm currently working on a simulation where a different truck assigned to a customer arrives at our warehouse every hour. During that hour, the truck is supposed to pick up specific items from a queue for that particular customer. The queue is already programmed so the items that are here corresponds to the customer assigned to that hour. &lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(55, 65, 81); font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: pre-wrap; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;For instance, between 8 and 9, the queue exclusively prepares products of type 9 and there's a truck type 9 that picks them up. Initially, I thought the truck arrivals to align with this process in the following manner:&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(55, 65, 81); font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: pre-wrap; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701308775857.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521272i87E1E04A10EDE537/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701308775857.png" alt="1701308775857.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;The triggered event is the entry to the queue where all the items of that type are ready to be collected. For the Decide I thought setting this condition:&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701307788144.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521273iC02C4CCD07181BE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701307788144.png" alt="1701307788144.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Basically if it comes to the queue a product that doesn't match with the customer assigned to the truck, the latter just leaves. &lt;STRONG&gt;The problem is that the first bus leaves but when the next one arrives (product "Cliente" 10), it doesn't pick up the products that are ready:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701307905953.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521275i57DEA489197D78CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701307905953.png" alt="1701307905953.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
 &lt;P&gt;That's why when I'm going to check the statistics, at 3600 s there's no product sent.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701307573212.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521274i34C868201F977107/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701307573212.png" alt="1701307573212.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;I think there's a problem with the conditional or its position in the process flow. I also tried with lists as you can see:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701308455957.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521276iE355553C59290DAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701308455957.png" alt="1701308455957.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;However there are some errors:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701308489842.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521278i24D14B0B9405E950/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701308489842.png" alt="1701308489842.png" /&gt;&lt;/span&gt;&lt;BR /&gt;So my question is:&lt;BR /&gt;1. ¿could you help me develop a simple way to do this? The important thing is that when the next truck arrives it picks all the products corresponding to its customer and waits for an hour until the other truck comes.&lt;BR /&gt;I've been working really hard but there are lots of new concepts that are a bit difficult to understand for me.&lt;/P&gt;
 &lt;P&gt;Thanks in advance for all your help!!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Nov 2023 01:44:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/loading-items-by-type-from-a-queue-to-a-truck/m-p/13592372#M87962</guid>
      <dc:creator>Xiomara</dc:creator>
      <dc:date>2023-11-30T01:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loading items by type from a queue to a truck</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/loading-items-by-type-from-a-queue-to-a-truck/m-p/13592373#M87963</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;From classic 3D point of view, your customer is pulling products of his type. Your queue sends on behalf of this request products to the customer. If the option Use Transport is active in sending queue, the queue can request a transport upon a pointer to a dispatcher or taskexecuter (truck). If you want to request a distinct truck then you can evaluate the local variables in source code header of Use Transport source code editor window and return a pointer or reference.&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Nov 2023 08:27:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/loading-items-by-type-from-a-queue-to-a-truck/m-p/13592373#M87963</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2023-11-30T08:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Loading items by type from a queue to a truck</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/loading-items-by-type-from-a-queue-to-a-truck/m-p/13592374#M87964</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I'd use lists but it looks like your pull from list SQL expression is referring to truck2 - and not the &lt;EM&gt;puller&lt;/EM&gt;.  Try making the truck the puller and refer to the puller.Cliente in the WHERE clause of the query. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Nov 2023 13:16:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/loading-items-by-type-from-a-queue-to-a-truck/m-p/13592374#M87964</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-11-30T13:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Loading items by type from a queue to a truck</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/loading-items-by-type-from-a-queue-to-a-truck/m-p/13592375#M87965</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; I've prepared an &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/76620-example.fsm" target="_blank"&gt;example.fsm&lt;/A&gt; of what I'm trying to do. There are two possible options:&lt;/P&gt;
 &lt;P&gt;1. The truck comes each hour and the transporter takes all the product according to the truck's type "Cliente" and load these items in the truck&lt;BR /&gt;2. The truck comes at the beginning and waits during an hour while the transporter loads each product in the truck.&lt;BR /&gt;However as you can see, the truck is somehow entering to the list, I don't know why.&lt;BR /&gt;Thank you so much for your attention and time!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Nov 2023 14:09:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/loading-items-by-type-from-a-queue-to-a-truck/m-p/13592375#M87965</guid>
      <dc:creator>Xiomara</dc:creator>
      <dc:date>2023-11-30T14:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Loading items by type from a queue to a truck</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/loading-items-by-type-from-a-queue-to-a-truck/m-p/13592376#M87966</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You query would need to be:&lt;/P&gt;&lt;PRE&gt;WHERE Cliente == {Table("TypeSchedule")[Model.dateTime.hour+1][2]}&lt;/PRE&gt;&lt;P&gt;These braces {}  tell FlexSim to interpret that part of the expression as FlexScript and not a query clause.  But what happens to backorders at the change of hour ?  You'd need the list to re-evaluate backorders on a global event that happens every hour (in  the list properties Advanced tab)&lt;/P&gt;&lt;P&gt;Then you're acquiring an abstract resource and trying to give it a load task. The resource should, I guess, be the forklift - so it should reference that.&lt;/P&gt;&lt;P&gt;You should do some of the tutorials before posting more questions. We encourage students to look through the training materials of their academic institution and those in the online help.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Dec 2023 00:30:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/loading-items-by-type-from-a-queue-to-a-truck/m-p/13592376#M87966</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-12-05T00:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Loading items by type from a queue to a truck</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/loading-items-by-type-from-a-queue-to-a-truck/m-p/13592377#M87967</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43402/xiomara.html" nodeid="43402"&gt;@XiomaraG&lt;/A&gt;, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Dec 2023 10:29:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/loading-items-by-type-from-a-queue-to-a-truck/m-p/13592377#M87967</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-12-08T10:29:53Z</dc:date>
    </item>
  </channel>
</rss>

