<?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 Help with Code Snippet in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/help-with-code-snippet/m-p/13527060#M36685</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello all,&lt;/P&gt;
 &lt;P&gt;I need your knowledge for resolving this (if possible).&lt;/P&gt;
 &lt;P&gt;I have the following code for creating 4 different FlowItems from a single Source but I need to set a different "label and colour" for each. E.g: label="box" &amp;amp; colour="red" for box FlowItem; label="cylinder" &amp;amp; colour="blue" for cylinder FlowItem and so on.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1656320652946.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511117i93ABAB7901C8988B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1656320652946.png" alt="1656320652946.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Thanks in advance for your support.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 27 Jun 2022 09:10:58 GMT</pubDate>
    <dc:creator>jose_antonio_ie</dc:creator>
    <dc:date>2022-06-27T09:10:58Z</dc:date>
    <item>
      <title>Help with Code Snippet</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/help-with-code-snippet/m-p/13527060#M36685</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello all,&lt;/P&gt;
 &lt;P&gt;I need your knowledge for resolving this (if possible).&lt;/P&gt;
 &lt;P&gt;I have the following code for creating 4 different FlowItems from a single Source but I need to set a different "label and colour" for each. E.g: label="box" &amp;amp; colour="red" for box FlowItem; label="cylinder" &amp;amp; colour="blue" for cylinder FlowItem and so on.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1656320652946.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511117i93ABAB7901C8988B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1656320652946.png" alt="1656320652946.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Thanks in advance for your support.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Jun 2022 09:10:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/help-with-code-snippet/m-p/13527060#M36685</guid>
      <dc:creator>jose_antonio_ie</dc:creator>
      <dc:date>2022-06-27T09:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Code Snippet</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/help-with-code-snippet/m-p/13527061#M36686</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/37319/jose-antonioie.html" nodeid="37319"&gt;@Jose_antonio Ie&lt;/A&gt; &lt;/P&gt;&lt;P&gt;If you would first set a label with the duniform(1,4) code. Then use that label to set the different flow item types like you have done in your code. In the next step you can find, under the "Visual" option of the oncreation trigger, the option "Set color by case" If you select that option and use the label you set in the beginning again you can give each flow item type a different color. Then you can either change the code and in each case statement also set the label or use the same option again to set a unique label. I've attached a model. &lt;/P&gt;&lt;P&gt;There is 1 thing I want to warn you for and that is that you set the itemclass on creation, but this means that the next flowitem that is created will have this new class type and not the one currently being created!&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/54159-sourcecreationtrigger.fsm" target="_blank"&gt;SourceCreationTrigger.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Jun 2022 10:05:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/help-with-code-snippet/m-p/13527061#M36686</guid>
      <dc:creator>SCHamoen</dc:creator>
      <dc:date>2022-06-27T10:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Code Snippet</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/help-with-code-snippet/m-p/13527062#M36687</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Why have you asked this duplicate question - we answered it &lt;A href="https://answers.flexsim.com/questions/119249/different-objects-from-one-source-1.html?childToView=122897#comments-container-119259"&gt;here&lt;/A&gt;.&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Jun 2022 13:28:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/help-with-code-snippet/m-p/13527062#M36687</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-06-27T13:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Code Snippet</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/help-with-code-snippet/m-p/13527063#M36688</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/37319/jose-antonioie.html" nodeid="37319"&gt;@Jose_antonio Ie&lt;/A&gt;, was Steven Hamoen's answer or Jason Lightfoot's comment helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Jul 2022 20:54:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/help-with-code-snippet/m-p/13527063#M36688</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2022-07-01T20:54:52Z</dc:date>
    </item>
  </channel>
</rss>

