<?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 Como hacer en un trigger de code snippet para que se ejecute una vez al día in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/como-hacer-en-un-trigger-de-code-snippet-para-que-se-ejecute-una/m-p/13587159#M83888</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.0.15 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;hola, quiero rellenar mi codigo diciendole que ejecute una vez al día (cada 1440min ya que esta en minutos)&lt;/P&gt;
 &lt;P id="isPasted"&gt;int NF;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="white-space:pre;"&gt; &lt;/SPAN&gt;treenode queue = node("Buffer FP 1", model()); &lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="white-space:pre;"&gt; &lt;/SPAN&gt;NF =content(queue) - gettablenum("Demand daily", item.Ref, CurrentDay); &lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="white-space:pre;"&gt; &lt;/SPAN&gt;settablenum("NF FP",item.Ref,CurrentDay,NF)&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;como puedo hacerlo, mediante if a poder ser&lt;/P&gt;
 &lt;P&gt; &lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 10 Jan 2025 09:09:28 GMT</pubDate>
    <dc:creator>anesanchez</dc:creator>
    <dc:date>2025-01-10T09:09:28Z</dc:date>
    <item>
      <title>Como hacer en un trigger de code snippet para que se ejecute una vez al día</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/como-hacer-en-un-trigger-de-code-snippet-para-que-se-ejecute-una/m-p/13587159#M83888</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.0.15 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;hola, quiero rellenar mi codigo diciendole que ejecute una vez al día (cada 1440min ya que esta en minutos)&lt;/P&gt;
 &lt;P id="isPasted"&gt;int NF;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="white-space:pre;"&gt; &lt;/SPAN&gt;treenode queue = node("Buffer FP 1", model()); &lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="white-space:pre;"&gt; &lt;/SPAN&gt;NF =content(queue) - gettablenum("Demand daily", item.Ref, CurrentDay); &lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="white-space:pre;"&gt; &lt;/SPAN&gt;settablenum("NF FP",item.Ref,CurrentDay,NF)&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;como puedo hacerlo, mediante if a poder ser&lt;/P&gt;
 &lt;P&gt; &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jan 2025 09:09:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/como-hacer-en-un-trigger-de-code-snippet-para-que-se-ejecute-una/m-p/13587159#M83888</guid>
      <dc:creator>anesanchez</dc:creator>
      <dc:date>2025-01-10T09:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Como hacer en un trigger de code snippet para que se ejecute una vez al día</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/como-hacer-en-un-trigger-de-code-snippet-para-que-se-ejecute-una/m-p/13587160#M83889</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P id="isPasted"&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;Hello Ane,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;There are a lot of methods to do that, but you cannot create a trigger manually, so you can't be sure that it will be executed every 1440 minutes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;The easiest alternative to creating a trigger manually is to create a user event. In the user event, you can write the code you want to execute and set the repeating time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1736501889223.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1526283iFABC8167E32AB9E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="1736501889223.png" alt="1736501889223.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P id="isPasted"&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;To get data from the model, we usually use the statistic collector. It is a little more complex to understand but very powerful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;We recommend you take a look at it, because in the statistic collector, you can create result tables directly by scheduling events or at specific intervals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jan 2025 09:42:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/como-hacer-en-un-trigger-de-code-snippet-para-que-se-ejecute-una/m-p/13587160#M83889</guid>
      <dc:creator>nilP8GEZ</dc:creator>
      <dc:date>2025-01-10T09:42:31Z</dc:date>
    </item>
  </channel>
</rss>

