<?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 code snip for process time value by case. in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543164#M49451</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.1.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I'm using a code snippet for changing the processtime of a processor once a task sequence sends an operator to help (reducing needed time in half do to help) but when thats done and I need him to leave I want the code to put the processor's processing time back to value by case. The value by case has to be able to read the labels again for the values. &lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 28 Jul 2022 14:57:02 GMT</pubDate>
    <dc:creator>josiah_s2</dc:creator>
    <dc:date>2022-07-28T14:57:02Z</dc:date>
    <item>
      <title>code snip for process time value by case.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543164#M49451</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.1.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I'm using a code snippet for changing the processtime of a processor once a task sequence sends an operator to help (reducing needed time in half do to help) but when thats done and I need him to leave I want the code to put the processor's processing time back to value by case. The value by case has to be able to read the labels again for the values. &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Jul 2022 14:57:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543164#M49451</guid>
      <dc:creator>josiah_s2</dc:creator>
      <dc:date>2022-07-28T14:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: code snip for process time value by case.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543165#M49452</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hey &lt;A rel="user" href="https://answers.flexsim.com/users/38868/josiahs2.html" nodeid="38868"&gt;@Josiah S2&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.&lt;/P&gt;&lt;P&gt;Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also &lt;A href="https://flexs.im/contact"&gt;contact your local FlexSim distributor&lt;/A&gt; for phone or email help.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Jul 2022 16:09:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543165#M49452</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2022-07-28T16:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: code snip for process time value by case.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543166#M49453</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/38868/josiahs2.html" nodeid="38868"&gt;@Josiah S2&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to &lt;A rel="user" href="https://answers.flexsim.com/users/35833/kavikaf.html" nodeid="35833"&gt;@Kavika F&lt;/A&gt;'s comment so that we can continue to help you.&lt;/P&gt;&lt;P&gt;If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can &lt;A href="https://flexs.im/contact"&gt;contact your local FlexSim distributor&lt;/A&gt; for phone or email help.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Aug 2022 18:12:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543166#M49453</guid>
      <dc:creator>andrew_o2</dc:creator>
      <dc:date>2022-08-02T18:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: code snip for process time value by case.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543167#M49454</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;DIV style="position: absolute; left: 70px; top: 26px; display: block; max-width: 600px; min-width: 50px; font-size: 14px; line-height: 19px; direction: ltr; box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 10px; padding: 0px; border: 1px solid rgb(204, 204, 204); background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); border-radius: 6px; background-clip: padding-box; margin: 0px; z-index: 15002; opacity: 0.67101;"&gt;
  &lt;DIV style="position: relative; padding: 0px; overflow: hidden; text-align: left; overflow-wrap: break-word; line-height: 20px; filter: none;"&gt;
   &lt;BR /&gt;
  &lt;/DIV&gt;
 &lt;/DIV&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: ;"&gt; &lt;/SPAN&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/35833/kavikaf.html" nodeid="35833"&gt;@Kavika F&lt;/A&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: ;"&gt; Here is a model picture. It wont let me attach the model file. sorry, I had gotten busy and forgot to check the post. &lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I would like for the 3rd operator on the right to move to the 1st operator on the left and split the process time. after a certain period of time I would like for the operator to go back to his station and for the first operators processtime to set back to processtime BY CASE. I was using labels to define the by case process time. I want this task sequence to start when the line before the first operator reaches a certain object limit.&lt;/P&gt;
 &lt;span class="lia-inline-image-display-wrapper" image-alt="1659623904016.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511768i2004F63BC1550304/image-size/large?v=v2&amp;amp;px=999" role="button" title="1659623904016.png" alt="1659623904016.png" /&gt;&lt;/span&gt;
 &lt;P&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Aug 2022 14:38:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543167#M49454</guid>
      <dc:creator>josiah_s2</dc:creator>
      <dc:date>2022-08-04T14:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: code snip for process time value by case.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543168#M49455</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hey &lt;A rel="user" href="https://answers.flexsim.com/users/38868/josiahs2.html" nodeid="38868"&gt;@Josiah S2&lt;/A&gt;, one thought I had was to set it up using a Global Table. This gif shows an example of a simple setup I did similar to yours where I have a Decision Point (DP) that delays Type 1 items for 50 seconds. If the Photo Eye (PE) gets blocked for too long (i.e., 10 seconds), then the Process Flow (PF) brings Operator3 over to help Operator1.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="variable-process-time-by-processor-num.gif"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511772i54E14293402EEEA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="variable-process-time-by-processor-num.gif" alt="variable-process-time-by-processor-num.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There's a label set on the DP called "numOperators" that starts at 1 but gets updated to 2 in the PF when Operator3 arrives. Then the delay/"process time" changes based on the code in the "On Arrival" trigger.&lt;/P&gt;&lt;PRE&gt;Table("OperatorProcessTable")[current.numOperators]["ProcessTime"]&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1659718630898.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511769iDDBD8B97ADC25D04/image-size/large?v=v2&amp;amp;px=999" role="button" title="1659718630898.png" alt="1659718630898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This code for the conditional will look at the global table I made and grab the process time based off of the number of operators at the station.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1659718662619.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511770iB91F48C149DE381B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1659718662619.png" alt="1659718662619.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once the PE has been cleared, Operator3 will go back to their station. The PF will change the label of numOperators from 2 back to 1 and the Delay will change back from 20 to 50.&lt;/P&gt;&lt;P&gt;I don't think changing the time in code would be effective if you're wanting to change the time based on case. Here in the table, you could have another column that specifies "Type" and change process time based on NumOperators &lt;EM&gt;and &lt;/EM&gt;type so it looks more like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1659718893688.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511771i1CEC3CA4ED12BC31/image-size/large?v=v2&amp;amp;px=999" role="button" title="1659718893688.png" alt="1659718893688.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Aug 2022 17:02:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543168#M49455</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2022-08-05T17:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: code snip for process time value by case.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543169#M49456</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 I believe this will work! 
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thank you for your insight and assistance.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Aug 2022 12:17:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543169#M49456</guid>
      <dc:creator>josiah_s2</dc:creator>
      <dc:date>2022-08-08T12:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: code snip for process time value by case.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543170#M49457</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;A rel="user" href="https://answers.flexsim.com/users/35833/kavikaf.html" nodeid="35833"&gt;@Kavika F&lt;/A&gt; Could you send me the model of that via the cloud sharing?
&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Aug 2022 20:11:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543170#M49457</guid>
      <dc:creator>josiah_s2</dc:creator>
      <dc:date>2022-08-08T20:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: code snip for process time value by case.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543171#M49458</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Yeah here you go: &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/81472-test.fsm" target="_blank"&gt;test.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Aug 2022 20:29:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-snip-for-process-time-value-by-case/m-p/13543171#M49458</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2022-08-08T20:29:39Z</dc:date>
    </item>
  </channel>
</rss>

