<?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 change dynamically  'targetcomponentsum' in the Combiner in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-dynamically-targetcomponentsum-in-the-combiner/m-p/13533247#M41672</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 18.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I want to change dynamically the target quantity of the Combiner not using PF.&lt;/P&gt;&lt;P&gt;So I used the custom code like followed;&lt;/P&gt;&lt;P&gt;setvarnum(current, "targetcomponentsum", item.Type + 1); &lt;/P&gt;&lt;P&gt;setvarnum(current, "Target Quantity", item.Type + 1);&lt;/P&gt;&lt;P&gt;One or Two script is not valid.&lt;/P&gt;&lt;P&gt;What's wrong with it?&lt;/P&gt;&lt;P&gt;&lt;A id="12833" href="https://answers.flexsim.com/storage/attachments/12833-combinerupdatemaxsum-test.fsm"&gt;combinerupdatemaxsum-test.fsm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jul 2018 03:18:47 GMT</pubDate>
    <dc:creator>SimFlex_support</dc:creator>
    <dc:date>2018-07-04T03:18:47Z</dc:date>
    <item>
      <title>how to change dynamically  'targetcomponentsum' in the Combiner</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-dynamically-targetcomponentsum-in-the-combiner/m-p/13533247#M41672</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 18.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I want to change dynamically the target quantity of the Combiner not using PF.&lt;/P&gt;&lt;P&gt;So I used the custom code like followed;&lt;/P&gt;&lt;P&gt;setvarnum(current, "targetcomponentsum", item.Type + 1); &lt;/P&gt;&lt;P&gt;setvarnum(current, "Target Quantity", item.Type + 1);&lt;/P&gt;&lt;P&gt;One or Two script is not valid.&lt;/P&gt;&lt;P&gt;What's wrong with it?&lt;/P&gt;&lt;P&gt;&lt;A id="12833" href="https://answers.flexsim.com/storage/attachments/12833-combinerupdatemaxsum-test.fsm"&gt;combinerupdatemaxsum-test.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 03:18:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-dynamically-targetcomponentsum-in-the-combiner/m-p/13533247#M41672</guid>
      <dc:creator>SimFlex_support</dc:creator>
      <dc:date>2018-07-04T03:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to change dynamically  'targetcomponentsum' in the Combiner</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-dynamically-targetcomponentsum-in-the-combiner/m-p/13533248#M41673</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/209/david.s.html" nodeid="209"&gt;@david.seo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You should change the table under "componentlist" instead of "Target Component" as the pic shown.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12834-code.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497255i4CD6991D5A2F5FE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="12834-code.png" alt="12834-code.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also updated your model and may it helps~&lt;/P&gt;&lt;P&gt;&lt;A id="12835" href="https://answers.flexsim.com/storage/attachments/12835-combinerupdatemaxsumv181bychj.fsm"&gt;combinerupdatemaxsumv181bychj.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 04:39:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-dynamically-targetcomponentsum-in-the-combiner/m-p/13533248#M41673</guid>
      <dc:creator>jing_chen</dc:creator>
      <dc:date>2018-07-04T04:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to change dynamically  'targetcomponentsum' in the Combiner</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-dynamically-targetcomponentsum-in-the-combiner/m-p/13533249#M41674</link>
      <description>&lt;P&gt;The answer is from the old forum. &lt;A rel="noopener noreferrer" href="https://www.flexsim.com/community/forum/showpost.php?p=12129&amp;amp;postcount=7" target="_blank"&gt;Componentsum is a combination of a node and a table value&lt;/A&gt;. You have to set one or more table cell values, which gives you the amount of the items coming through a port number higher than the port one, and then you set a variable node value of the componentsum. In your example you set two variable node values. This causes the error.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 06:31:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-dynamically-targetcomponentsum-in-the-combiner/m-p/13533249#M41674</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2018-07-04T06:31:27Z</dc:date>
    </item>
  </channel>
</rss>

