<?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: Start event log by Flexscript in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517024#M28753</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If you run the code in your model without the experimenter, do you see all the events in the event log dialog in your view?&lt;BR /&gt;The code&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;applicationcommand("saveeventlog", 0, &lt;EM&gt;filePath&lt;/EM&gt;);&lt;/PRE&gt;&lt;P&gt;Seems to be working, so I don't think the problem is there&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 07 May 2021 13:43:01 GMT</pubDate>
    <dc:creator>patrick_zweekhorst</dc:creator>
    <dc:date>2021-05-07T13:43:01Z</dc:date>
    <item>
      <title>Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517015#M28744</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Dear all&lt;/P&gt;
 &lt;P&gt;I am looking for a coded way to start the event log for each scenario/replication when using the Experimenter, and to export the event log to csv files.&lt;/P&gt;
 &lt;P&gt;Regarding the export step, I found this answer already&lt;/P&gt;
 &lt;P&gt;&lt;A rel="nofollow noopener noreferrer" href="https://answers.flexsim.com/questions/99618/how-to-operationalize-a-flexsim-model-error-handli-1.html" target="_blank"&gt;https://answers.flexsim.com/questions/99618/how-to-operationalize-a-flexsim-model-error-handli-1.html&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;However, I cannot find which function name to add to the applicationcommand() to start the event logging on the start of each replication. Is this function also available?&lt;/P&gt;
 &lt;P&gt;Many thanks, kind regards&lt;/P&gt;
 &lt;P&gt;Laurenz Peleman&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 May 2021 12:35:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517015#M28744</guid>
      <dc:creator>laurenz_peleman</dc:creator>
      <dc:date>2021-05-07T12:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517016#M28745</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I think it is a fundamental setting before you run a model, because you are going to log all of selected events of objects and the duration of the logging. And the first events occure on the list, when you hit the reset button already. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 May 2021 12:38:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517016#M28745</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2021-05-07T12:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517017#M28746</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/1891/laurenz.p.html" nodeid="1891"&gt;@Laurenz Peleman&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Have you tried:&lt;/P&gt;&lt;PRE&gt;applicationcommand("seteventlogging",1,-1); // enable logging
applicationcommand("seteventlogging",0,-1); // disable logging&lt;/PRE&gt;&lt;P&gt;I have never used this but it seems to be the code you are looking for.&lt;BR /&gt;I would give this a try&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 May 2021 12:41:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517017#M28746</guid>
      <dc:creator>patrick_zweekhorst</dc:creator>
      <dc:date>2021-05-07T12:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517018#M28747</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks for your quick reply. If what you say is correct, how do I get what I want in that situation?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 May 2021 12:41:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517018#M28747</guid>
      <dc:creator>laurenz_peleman</dc:creator>
      <dc:date>2021-05-07T12:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517019#M28748</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/751/patrick.z.html" nodeid="751"&gt;@Patrick Zweekhorst&lt;/A&gt;,Thanks!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 May 2021 12:45:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517019#M28748</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2021-05-07T12:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517020#M28749</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/751/patrick.z.html" nodeid="751"&gt;@Patrick Zweekhorst&lt;/A&gt; Thanks for your helpful answer. I don't know what the parameters 1 and -1 represent (is there any documentation on this applicationcommand()?), but it turns out that only a part of the events at time stamp 0 are collected when running your code...&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 May 2021 13:01:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517020#M28749</guid>
      <dc:creator>laurenz_peleman</dc:creator>
      <dc:date>2021-05-07T13:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517021#M28750</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The first parameter seems to be the toggle on/off. I don't know why the parameter -1 is there. All I can see is that this is the code that is called if the check the checkbox for logging the events. I would assume that all events after you have called the code would be logged. If that is not the case someone from the FlexSim team in the US might be able to help you further.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 May 2021 13:08:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517021#M28750</guid>
      <dc:creator>patrick_zweekhorst</dc:creator>
      <dc:date>2021-05-07T13:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517022#M28751</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Have you switched off any of the events in the settings tab?&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="39228-1620394405130.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1505905i4DF19958BC7968CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="39228-1620394405130.png" alt="39228-1620394405130.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 May 2021 13:33:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517022#M28751</guid>
      <dc:creator>patrick_zweekhorst</dc:creator>
      <dc:date>2021-05-07T13:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517023#M28752</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;No, nothing. Are you able to export the full event log this way? Perhaps the error is in the export statement of the link in my initial question?&lt;BR /&gt;So what I have: in the On Start Replication trigger&lt;/P&gt;
 &lt;PRE&gt;applicationcommand("seteventlogging",1,-1); // enable logging&lt;/PRE&gt;
 &lt;P&gt;in the On End Replication trigger&lt;/P&gt;
 &lt;PRE&gt;if (!objectexists(childexpfolder)) {
applicationcommand("saveeventlog", 0, "C:\\~\\eventlog.csv");}&lt;/PRE&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 May 2021 13:38:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517023#M28752</guid>
      <dc:creator>laurenz_peleman</dc:creator>
      <dc:date>2021-05-07T13:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517024#M28753</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If you run the code in your model without the experimenter, do you see all the events in the event log dialog in your view?&lt;BR /&gt;The code&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;applicationcommand("saveeventlog", 0, &lt;EM&gt;filePath&lt;/EM&gt;);&lt;/PRE&gt;&lt;P&gt;Seems to be working, so I don't think the problem is there&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 May 2021 13:43:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517024#M28753</guid>
      <dc:creator>patrick_zweekhorst</dc:creator>
      <dc:date>2021-05-07T13:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517025#M28754</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;No, when I run the code in a command window, I only get the same subset of events that I see in the export file. Moreover, when doing my above approach in the Experimenter, the export file turns out to be blank&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 May 2021 13:52:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517025#M28754</guid>
      <dc:creator>laurenz_peleman</dc:creator>
      <dc:date>2021-05-07T13:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517026#M28755</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Okay, in that case i am not sure what goes wrong. Maybe someone else can help you further&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 May 2021 13:56:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517026#M28755</guid>
      <dc:creator>patrick_zweekhorst</dc:creator>
      <dc:date>2021-05-07T13:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517027#M28756</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The -1 is for enabling/disabling event logging in general. You use the same command to enable/disable particular event type codes. See VIEW:/standardviews/eventlog/EventLogSettings&amp;gt;OnApply&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 May 2021 14:56:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517027#M28756</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2021-05-07T14:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517028#M28757</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/1891/laurenz.p.html" nodeid="1891"&gt;@Laurenz Peleman&lt;/A&gt;&lt;/P&gt;&lt;P&gt;No one can tell you what is wrong unless you post enough information to replicate what you are doing.&lt;/P&gt;&lt;P&gt;Post a sample model with your code if you want someone to be able to help you understand why your code isn't working.&lt;/P&gt;&lt;P&gt;As far as I can tell, everything is working perfectly. You didn't give enough information to duplicate your issue. Until you do, no one is going to be able to help you.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="39281-eventlog-export.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1505906iEEE8F0D85FB39F24/image-size/large?v=v2&amp;amp;px=999" role="button" title="39281-eventlog-export.png" alt="39281-eventlog-export.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 May 2021 15:28:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517028#M28757</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2021-05-07T15:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Start event log by Flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517029#M28758</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/1891/laurenz.p.html" nodeid="1891"&gt;@Laurenz Peleman&lt;/A&gt;, was Patrick Zweekhorst's answer helpful? If so, please click the red "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;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 May 2021 02:16:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/start-event-log-by-flexscript/m-p/13517029#M28758</guid>
      <dc:creator>Ben_WilsonADSK</dc:creator>
      <dc:date>2021-05-19T02:16:54Z</dc:date>
    </item>
  </channel>
</rss>

