<?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 can I  change the visual of a source by FlexScript? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524073#M34343</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/9429/fionak.html" nodeid="9429"&gt;@fiona.k&lt;/A&gt;, The icon on my source does not change when I enable/disable the node. Can you post an example model of what you are seeing?&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 16 Sep 2020 14:53:21 GMT</pubDate>
    <dc:creator>benjamin_w2</dc:creator>
    <dc:date>2020-09-16T14:53:21Z</dc:date>
    <item>
      <title>How can I  change the visual of a source by FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524072#M34342</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.2.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Does anybody have an idea how I can change the visual of an event triggered source in the Processflow when I'm using FlexScript to enable/ disable it? To fill the checkbox I used these expressions and they worked properly:&lt;/P&gt;
 &lt;P&gt;setvarnum(Model.find("Tools/ProcessFlow/ProcessFlow/Source"), "enabled", 0);&lt;/P&gt;
 &lt;P&gt;setvarnum(Model.find("Tools/ProcessFlow/ProcessFlow/Source"), "enabled", 1);&lt;/P&gt;
 &lt;P&gt;But even if the source is enabled, the event triggered source is crossed out: &lt;span class="lia-inline-image-display-wrapper" image-alt="32663-1600264245825.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1503666i766D306E3FA8DDD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="32663-1600264245825.png" alt="32663-1600264245825.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Thank you in advance!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Sep 2020 13:53:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524072#M34342</guid>
      <dc:creator>fiona_k</dc:creator>
      <dc:date>2020-09-16T13:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I  change the visual of a source by FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524073#M34343</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/9429/fionak.html" nodeid="9429"&gt;@fiona.k&lt;/A&gt;, The icon on my source does not change when I enable/disable the node. Can you post an example model of what you are seeing?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Sep 2020 14:53:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524073#M34343</guid>
      <dc:creator>benjamin_w2</dc:creator>
      <dc:date>2020-09-16T14:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I  change the visual of a source by FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524074#M34344</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="#"&gt;@benjamin.w2&lt;/A&gt;, that's exactly the problem. I attached an example model. &lt;span class="lia-inline-image-display-wrapper" image-alt="32693-1600322726672.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1503663i749E7613F5585ED4/image-size/large?v=v2&amp;amp;px=999" role="button" title="32693-1600322726672.png" alt="32693-1600322726672.png" /&gt;&lt;/span&gt;&lt;A rel="nofollow noopener noreferrer" href="https://answers.flexsim.com/storage/temp/32694-example.fsm" target="_blank"&gt;example.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Sep 2020 06:06:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524074#M34344</guid>
      <dc:creator>fiona_k</dc:creator>
      <dc:date>2020-09-17T06:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I  change the visual of a source by FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524075#M34345</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;To get the icon to update you need to call the "updateIcon" function on the activity as well.&lt;/P&gt;&lt;PRE&gt;treenode source = Model.find("Tools/ProcessFlow/ProcessFlow/Source");
setvarnum(source, "enabled", checked);
function_s(source, "updateIcon");&lt;/PRE&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/32704-example-1.fsm" target="_blank"&gt;example_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Sep 2020 16:27:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524075#M34345</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2020-09-17T16:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I  change the visual of a source by FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524076#M34346</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/46275-enabled.fsm" target="_blank"&gt;enabled.fsm&lt;/A&gt;hi@Matthew Gillespie,Although the icon has changed, why does the token still flow. &lt;/P&gt;
 &lt;P&gt;Software Version:&lt;/P&gt;
 &lt;DIV style="color: rgb(51, 51, 51); font-family: "&gt;
  FlexSim 21.2.0
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Nov 2021 03:09:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524076#M34346</guid>
      <dc:creator>kuooge009</dc:creator>
      <dc:date>2021-11-25T03:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I  change the visual of a source by FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524077#M34347</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/12960/fangj.html"&gt;@Fang J&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;When I place a "Breathe" activity (Delay activity with a delay value of 0) between the custom code and create object activities it works great. Here is a &lt;A href="https://answers.flexsim.com/questions/51784/when-to-use-a-breathe-activity.html"&gt;post&lt;/A&gt; that gives some explanation for "Breathe" activities.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 28 Nov 2021 04:24:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524077#M34347</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2021-11-28T04:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I  change the visual of a source by FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524078#M34348</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;thank you for your response&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Dec 2021 05:55:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-change-the-visual-of-a-source-by-flexscript/m-p/13524078#M34348</guid>
      <dc:creator>kuooge009</dc:creator>
      <dc:date>2021-12-22T05:55:15Z</dc:date>
    </item>
  </channel>
</rss>

