<?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: How to determine process times by the object name? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-determine-process-times-by-the-object-name/m-p/13549051#M54087</link>
    <description>&lt;P&gt;You can set the process time indirectly over the index of an array of the item names. It is recomented to start a name with a character that isn't a number.&lt;/P&gt;&lt;P&gt;Here the code for the Process Time function:&lt;/P&gt;&lt;PRE&gt;double procTime = 0.0; // initialize procTime;

Array parts = ["Part1", "Part3", "Part2"];// array of Part names
int index = parts.indexOf(item.name);
switch(index){
    case 1: // Part1
        {
            procTime = 11.1;
            break;
        }
    case 2: // Part3
        {
            procTime = 12.3;
            break;
        }
    case 3: // Part2
        {
            procTime = 14.4;
            break;
        }
    default: // not element of the array parts
        procTime = 10.0;
}

    
return procTime;&lt;/PRE&gt;&lt;P&gt;You can add more elements to the array. &lt;A id="8350" href="https://answers.flexsim.com/storage/attachments/8350-process-time-by-item-name.fsm"&gt;process-time-by-item-name.fsm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Aug 2017 23:30:40 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2017-08-29T23:30:40Z</dc:date>
    <item>
      <title>How to determine process times by the object name?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-determine-process-times-by-the-object-name/m-p/13549049#M54085</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 17.1.1 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I would like to make a model, where process time will be chosen by the name of box which is going to multiprocessor? For example box named "1" should be 10 seconds in multiprocessor, box "2" 15 seconds; etc.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 12:19:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-determine-process-times-by-the-object-name/m-p/13549049#M54085</guid>
      <dc:creator>wojciech_p</dc:creator>
      <dc:date>2017-08-29T12:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine process times by the object name?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-determine-process-times-by-the-object-name/m-p/13549050#M54086</link>
      <description>&lt;A rel="user" href="https://answers.flexsim.com/users/4578/wojciech.p.html" nodeid="4578"&gt;@Wojciech P&lt;/A&gt;&lt;P&gt;There are a few ways you can do this. One is to set a label on the items exiting the source. Then have the processor read the item label and assign the processing time.&lt;/P&gt;&lt;P&gt;1. On the Source go to the Triggers Tab - On Creation - Set Label&lt;/P&gt;&lt;P&gt;In the example I created a label called "itemType".&lt;/P&gt;&lt;P&gt;2. On the Processor go to Processor Tab - Process Time - Values by Case.&lt;/P&gt;&lt;P&gt;For the case, reference it to token.itemType. Here you can put the options for the different processing times based on the item type. &lt;A id="8343" href="https://answers.flexsim.com/storage/attachments/8343-timebyitemtype.fsm"&gt;timebyitemtype.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 14:25:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-determine-process-times-by-the-object-name/m-p/13549050#M54086</guid>
      <dc:creator>kari_payton</dc:creator>
      <dc:date>2017-08-29T14:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine process times by the object name?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-determine-process-times-by-the-object-name/m-p/13549051#M54087</link>
      <description>&lt;P&gt;You can set the process time indirectly over the index of an array of the item names. It is recomented to start a name with a character that isn't a number.&lt;/P&gt;&lt;P&gt;Here the code for the Process Time function:&lt;/P&gt;&lt;PRE&gt;double procTime = 0.0; // initialize procTime;

Array parts = ["Part1", "Part3", "Part2"];// array of Part names
int index = parts.indexOf(item.name);
switch(index){
    case 1: // Part1
        {
            procTime = 11.1;
            break;
        }
    case 2: // Part3
        {
            procTime = 12.3;
            break;
        }
    case 3: // Part2
        {
            procTime = 14.4;
            break;
        }
    default: // not element of the array parts
        procTime = 10.0;
}

    
return procTime;&lt;/PRE&gt;&lt;P&gt;You can add more elements to the array. &lt;A id="8350" href="https://answers.flexsim.com/storage/attachments/8350-process-time-by-item-name.fsm"&gt;process-time-by-item-name.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 23:30:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-determine-process-times-by-the-object-name/m-p/13549051#M54087</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2017-08-29T23:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine process times by the object name?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-determine-process-times-by-the-object-name/m-p/13549052#M54088</link>
      <description>&lt;P&gt;Thank you all very much!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 04:52:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-determine-process-times-by-the-object-name/m-p/13549052#M54088</guid>
      <dc:creator>wojciech_p</dc:creator>
      <dc:date>2017-08-30T04:52:20Z</dc:date>
    </item>
  </channel>
</rss>

