<?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 How to set Processing time with code? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-processing-time-with-code/m-p/13562730#M64912</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.1.1 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I have 200 processors, and would like to change the processing time of each one. Is there a way to change the processing time of each processor using 'Custom Code' in process flow?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 15:26:09 GMT</pubDate>
    <dc:creator>pinakin_k</dc:creator>
    <dc:date>2019-07-29T15:26:09Z</dc:date>
    <item>
      <title>How to set Processing time with code?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-processing-time-with-code/m-p/13562730#M64912</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.1.1 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I have 200 processors, and would like to change the processing time of each one. Is there a way to change the processing time of each processor using 'Custom Code' in process flow?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 15:26:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-processing-time-with-code/m-p/13562730#M64912</guid>
      <dc:creator>pinakin_k</dc:creator>
      <dc:date>2019-07-29T15:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Processing time with code?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-processing-time-with-code/m-p/13562731#M64913</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/4687/pinakin.k.html" nodeid="4687"&gt;@Pinakin K&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;You can change the Processing Time with code by using the Tree. If you right click on the processor you will see an option to see the Tree for that processor. The Specific node that controls the processor time will be found under variables as the "cycletime". By using the code "Model.find("Processor1&amp;gt;variables/cycletime").value = 20;" you can can change the Process Time in your custom code. &lt;/P&gt;&lt;P&gt;In my example below I used process flow to wait for an event such as process finish to then change the processing time. So it would depend on how/when you wanted to change the process time for where/when you implemented the custom code. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="21050-processing-time-custom-code-tree.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1499770i2F7202881DC754A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="21050-processing-time-custom-code-tree.png" alt="21050-processing-time-custom-code-tree.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 15:57:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-processing-time-with-code/m-p/13562731#M64913</guid>
      <dc:creator>zac_h_adsk</dc:creator>
      <dc:date>2019-07-29T15:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Processing time with code?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-processing-time-with-code/m-p/13562732#M64914</link>
      <description>&lt;P&gt;Thank You! it works.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 18:46:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-processing-time-with-code/m-p/13562732#M64914</guid>
      <dc:creator>pinakin_k</dc:creator>
      <dc:date>2019-07-29T18:46:04Z</dc:date>
    </item>
  </channel>
</rss>

