<?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 trigger for source in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/trigger-for-source/m-p/13481155#M743</link>
    <description>&lt;P&gt;Hello everyone! I would like to know what trigger or label I should use so that my source first generates a type 1 resource, then one of type 2 and so on, because if I use the duniform or any of the statistical distributions that appear the resources are generated with values of 1.42, 1.58, etc. and I want them to have exact type values such as 1 or 2. And I also need to know how to make the source give it a specific color according to the type, I know it is a very general question but I can't get it and I already saw All the videos about that on the internet. Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 00:05:54 GMT</pubDate>
    <dc:creator>francisco_t</dc:creator>
    <dc:date>2019-09-10T00:05:54Z</dc:date>
    <item>
      <title>trigger for source</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/trigger-for-source/m-p/13481155#M743</link>
      <description>&lt;P&gt;Hello everyone! I would like to know what trigger or label I should use so that my source first generates a type 1 resource, then one of type 2 and so on, because if I use the duniform or any of the statistical distributions that appear the resources are generated with values of 1.42, 1.58, etc. and I want them to have exact type values such as 1 or 2. And I also need to know how to make the source give it a specific color according to the type, I know it is a very general question but I can't get it and I already saw All the videos about that on the internet. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 00:05:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/trigger-for-source/m-p/13481155#M743</guid>
      <dc:creator>francisco_t</dc:creator>
      <dc:date>2019-09-10T00:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: trigger for source</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/trigger-for-source/m-p/13481156#M744</link>
      <description>&lt;P&gt;On the source add an On Creation trigger and then use the Set Item Type and Color pickoption. This option defaults to using duniform(1,3) which will randomly set the item’s Type label to 1,2, or 3. It then sets the color according to its Type value.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 05:47:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/trigger-for-source/m-p/13481156#M744</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2019-09-10T05:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: trigger for source</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/trigger-for-source/m-p/13481157#M745</link>
      <description>&lt;P&gt;The statistical distributions starting with a "d" character in there name indicate, that they return integer values (discrete values).&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;duniform( ..)&lt;/LI&gt;&lt;LI&gt;dempirical(..)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if you open a trigger in one of 3D objects' properties, you can add by the green cross icon picklist options. They are predefined source code templates.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22137-basic-item-type-and-color.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1500162i9ECEC4F4699DAECD/image-size/large?v=v2&amp;amp;px=999" role="button" title="22137-basic-item-type-and-color.jpg" alt="22137-basic-item-type-and-color.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; One of them is the option "Set Label and Color".&lt;BR /&gt;Earlier version called this "Set Type and Color". The default setting sets the Label &lt;STRONG&gt;Type&lt;/STRONG&gt; and assign a color to the Object &lt;STRONG&gt;item&lt;/STRONG&gt; by the result of Value&lt;/P&gt;&lt;PRE&gt;duniform(1,3,getstream(current))   &lt;/PRE&gt;&lt;P&gt;The statistical distribution duniform returns an integer value from the range [1..3] randomly choosen by random generator with seed values of getstream(current). &lt;/P&gt;&lt;P&gt;This integer value will be the value of the label and chooses a color of default array [red, green, blue, yellow, ..] by the index number. &lt;/P&gt;&lt;P&gt;Maybe you try to watch basic FlexSim videos, even if they outdated by now, they still give you a grip on the mechanisms in this simulation tool.  &lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 06:00:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/trigger-for-source/m-p/13481157#M745</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2019-09-10T06:00:52Z</dc:date>
    </item>
  </channel>
</rss>

