<?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: listen Events and Execute custom code by code in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504169#M18639</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The problem with your model is that your plane reference is wrong. You are trying to reference "Plane24", but the object in your model is "Plane1".&lt;/P&gt;&lt;P&gt;Also, your queueOnEntry node needs to be toggled as FlexScript. Right now, it is just holding a string. Since you want it to be executed, you need to toggle it as FlexScript.&lt;/P&gt;&lt;P&gt;Attached is your example, modified to show you how the eventlisten() command works.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/38330-listen-events-and-execute-custom-codev2102-1.fsm" target="_blank"&gt;listen-events-and-execute-custom-codev2102_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="38351-1617895701322.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1505530i50EF5B2D2A70ADE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="38351-1617895701322.png" alt="38351-1617895701322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 08 Apr 2021 15:28:49 GMT</pubDate>
    <dc:creator>philboboADSK</dc:creator>
    <dc:date>2021-04-08T15:28:49Z</dc:date>
    <item>
      <title>listen Events and Execute custom code by code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504164#M18634</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;How to listen to Object binded but not added trigger through code (NOT PF)? For example, When the item entering in Queue1, I want to execute the variable code (queueOnEntry) of Plane1.&lt;/P&gt;
 &lt;P&gt;I added an eventListener ,but it does not worked.&lt;/P&gt;
 &lt;P&gt;Any suggestion is welcome.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="38281-pic1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1505532iFBBA157AF9BD99B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="38281-pic1.png" alt="38281-pic1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/38248-listen-events-and-execute-custom-codev2102.fsm" target="_blank"&gt;listen Events and Execute custom codeV21.0.2.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Apr 2021 04:35:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504164#M18634</guid>
      <dc:creator>565109852</dc:creator>
      <dc:date>2021-04-07T04:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: listen Events and Execute custom code by code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504165#M18635</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Prompt reply. &lt;SPAN class="mention-at-signal" id="mention-at-signal-2"&gt;@&lt;/SPAN&gt;&lt;A rel="nofollow" href="https://answers.flexsim.com/users/226/jason.l.html"&gt;jason.lightfoot&lt;/A&gt; @&lt;A rel="nofollow" href="https://answers.flexsim.com/users/193/steven.h.html"&gt;steven.hamoen&lt;/A&gt; @&lt;A rel="nofollow" href="https://answers.flexsim.com/users/87/matthew.g.html"&gt;Matthew Gillespie&lt;/A&gt; @&lt;A rel="nofollow" href="https://answers.flexsim.com/users/9/benjaminwilson.html"&gt;Ben Wilson&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;I know that message triggering can be realized, and so can PF. It's just that I'm doing a function development. Should I consider triggers function overload and how to implement it?&lt;/P&gt;
 &lt;P&gt;Be grateful.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Apr 2021 01:00:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504165#M18635</guid>
      <dc:creator>565109852</dc:creator>
      <dc:date>2021-04-08T01:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: listen Events and Execute custom code by code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504166#M18636</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;then try the SDK&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Apr 2021 04:01:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504166#M18636</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2021-04-08T04:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: listen Events and Execute custom code by code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504167#M18637</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Can the function &lt;STRONG&gt;eventlisten &lt;/STRONG&gt;be implemented? It seems that the third parameter of this function named &lt;STRONG&gt;relaynode&lt;/STRONG&gt; is &lt;U&gt;not executed&lt;/U&gt;.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Apr 2021 08:57:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504167#M18637</guid>
      <dc:creator>565109852</dc:creator>
      <dc:date>2021-04-08T08:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: listen Events and Execute custom code by code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504168#M18638</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;It Worked.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Apr 2021 09:48:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504168#M18638</guid>
      <dc:creator>565109852</dc:creator>
      <dc:date>2021-04-08T09:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: listen Events and Execute custom code by code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504169#M18639</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The problem with your model is that your plane reference is wrong. You are trying to reference "Plane24", but the object in your model is "Plane1".&lt;/P&gt;&lt;P&gt;Also, your queueOnEntry node needs to be toggled as FlexScript. Right now, it is just holding a string. Since you want it to be executed, you need to toggle it as FlexScript.&lt;/P&gt;&lt;P&gt;Attached is your example, modified to show you how the eventlisten() command works.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/38330-listen-events-and-execute-custom-codev2102-1.fsm" target="_blank"&gt;listen-events-and-execute-custom-codev2102_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="38351-1617895701322.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1505530i50EF5B2D2A70ADE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="38351-1617895701322.png" alt="38351-1617895701322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Apr 2021 15:28:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504169#M18639</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2021-04-08T15:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: listen Events and Execute custom code by code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504170#M18640</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;The Object name was not changed back when uploading. The main problem is the node data type.Thank you very much.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Apr 2021 01:48:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/listen-events-and-execute-custom-code-by-code/m-p/13504170#M18640</guid>
      <dc:creator>565109852</dc:creator>
      <dc:date>2021-04-09T01:48:38Z</dc:date>
    </item>
  </channel>
</rss>

