<?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 Re: Can processing times be assigned to the processors using code(flexscript)? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525496#M35475</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/14098/suhash2.html" nodeid="14098"&gt;@Suhas H2&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;The way this is generally done is to have the processors read their processing time from a global table. Then you can use flexscript to write different values to the global table.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2019 16:44:10 GMT</pubDate>
    <dc:creator>Matthew_Gillespie</dc:creator>
    <dc:date>2019-04-15T16:44:10Z</dc:date>
    <item>
      <title>Can processing times be assigned to the processors using code(flexscript)?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525495#M35474</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I want to assign the processing times to the processor using flexscript. Can that be done?&lt;A id="18525" href="https://answers.flexsim.com/storage/attachments/18525-test1.fsm"&gt;test1.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 09:21:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525495#M35474</guid>
      <dc:creator>suhas_h2</dc:creator>
      <dc:date>2019-04-15T09:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can processing times be assigned to the processors using code(flexscript)?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525496#M35475</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/14098/suhash2.html" nodeid="14098"&gt;@Suhas H2&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;The way this is generally done is to have the processors read their processing time from a global table. Then you can use flexscript to write different values to the global table.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 16:44:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525496#M35475</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2019-04-15T16:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can processing times be assigned to the processors using code(flexscript)?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525497#M35476</link>
      <description>&lt;P&gt;Can you please attach an example of how that is done?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 03:22:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525497#M35476</guid>
      <dc:creator>suhas_h2</dc:creator>
      <dc:date>2019-04-16T03:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can processing times be assigned to the processors using code(flexscript)?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525498#M35477</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/14098/suhash2.html" nodeid="14098"&gt;@Suhas H2&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Here's an example of what Matthew was describing. In the model, the Process Time is accessing Global Table values based on item.Type. When the model starts, the green items process slowly, while red items process quickly. Then, you'll notice that after 10 items have been processed, the Custom Code activities in Process Flow change the values in the Global Table such that red items now process slowly, while green items process quickly. Please review the code in the Processor as well as the Custom Code activities in Process Flow to understand and implement this in your models. Thanks!&lt;/P&gt;&lt;P&gt;How to access Global Table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18571-process-time-by-case.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1498978i2B1ABB5D0F0D2511/image-size/large?v=v2&amp;amp;px=999" role="button" title="18571-process-time-by-case.png" alt="18571-process-time-by-case.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How to dynamically update Global Table (and, effectively, Process Time):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18572-update-global-table.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1498979i0BD0F64D4871B0F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="18572-update-global-table.png" alt="18572-update-global-table.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Model: &lt;A id="18573" href="https://answers.flexsim.com/storage/attachments/18573-update-global-table-dynamically.fsm"&gt;update-global-table-dynamically.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 18:05:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525498#M35477</guid>
      <dc:creator>tanner_p</dc:creator>
      <dc:date>2019-04-16T18:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can processing times be assigned to the processors using code(flexscript)?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525499#M35478</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18580-capture.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1498982iC771858288FB7E9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="18580-capture.png" alt="18580-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/8186/tannerp.html" nodeid="8186"&gt;@Tanner Poulton&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks for the reply...&lt;/P&gt;
&lt;P&gt;What if I have 50-100 Processors in line? All this have to be done for every single of them?&lt;/P&gt;
&lt;P&gt;Is there any way to do using flexscript? I tried this code but not getting desired output.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="redactor-selection-marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 03:59:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525499#M35478</guid>
      <dc:creator>suhas_h2</dc:creator>
      <dc:date>2019-04-17T03:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can processing times be assigned to the processors using code(flexscript)?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525500#M35479</link>
      <description>&lt;P&gt;The process time isn’t just a value. It is the return value of a script by itself. The script is stored at a node. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18582-process-time-not-a-value.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1498983i67028A89028776D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="18582-process-time-not-a-value.jpg" alt="18582-process-time-not-a-value.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can copy the node of the script to every processor. If you must transfer the same script code of the process time from an highlighted object (yellow frame) to selected objects (red framed objects) you use the tool edit selected object under the View main menu. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18583-tool-edit-selected-objects.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1498984iC7ABA18CAE1022EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="18583-tool-edit-selected-objects.jpg" alt="18583-tool-edit-selected-objects.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the manual look at &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/19.0/Using3DObjects/WorkingWith3DObjects/CopyingPasting/#properties" target="_blank"&gt;Copying and Pasting 3D Objects And Properties&lt;/A&gt; under the headline &lt;EM&gt;Using the Edit Selected Objects Tool. &lt;/EM&gt;and especially there the text box&lt;EM&gt; Copy Specific Variables.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 04:25:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525500#M35479</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2019-04-17T04:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can processing times be assigned to the processors using code(flexscript)?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525501#M35480</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Jörg Vogel&lt;/A&gt; &lt;/P&gt;
&lt;P&gt; Thanks for the reply...&lt;/P&gt;
&lt;P&gt;I agree with you on this. But can that return value of the script in processor be made dynamic by using flexscript only is my question.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 07:13:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525501#M35480</guid>
      <dc:creator>suhas_h2</dc:creator>
      <dc:date>2019-04-17T07:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can processing times be assigned to the processors using code(flexscript)?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525502#M35481</link>
      <description>&lt;P&gt;Does each processor have its own unique processing time? Or do they all use the same time?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 22:58:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525502#M35481</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2019-04-17T22:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can processing times be assigned to the processors using code(flexscript)?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525503#M35482</link>
      <description>&lt;P&gt;Each processor have there unique processing times.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 04:12:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525503#M35482</guid>
      <dc:creator>suhas_h2</dc:creator>
      <dc:date>2019-04-18T04:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can processing times be assigned to the processors using code(flexscript)?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525504#M35483</link>
      <description>&lt;P&gt;You can’t directly make it dynamically. You can replace the return value by a reference as a substitute. This reference can be a table cell value, a label value, a node value. You change the reference value und thus you make the process time dynamically.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 05:58:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-processing-times-be-assigned-to-the-processors-using-code/m-p/13525504#M35483</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2019-04-18T05:58:29Z</dc:date>
    </item>
  </channel>
</rss>

