<?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: Replace null values of a Milestone Collector with simulation run end time in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/replace-null-values-of-a-milestone-collector-with-simulation-run/m-p/13592249#M87862</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you so much! Working well!&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 25 Feb 2025 13:07:48 GMT</pubDate>
    <dc:creator>jgolob</dc:creator>
    <dc:date>2025-02-25T13:07:48Z</dc:date>
    <item>
      <title>Replace null values of a Milestone Collector with simulation run end time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/replace-null-values-of-a-milestone-collector-with-simulation-run/m-p/13592245#M87858</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 25.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I was wondering if it is possible to replace 'null' values within a Milestone Collector via it's properties? I am collecting the time an operating room is occupied between 7:20AM and 3PM using milestones in my patient flow. If a patient is still in the operating room at 3PM, I would like the null value to read 3PM for the calculations I do on this milestone collector. Below are the screen shots from my Milestone Collector, its output, and the patient flow. &lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1740405726620.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1526708i24162C92E9085328/image-size/large?v=v2&amp;amp;px=999" role="button" title="1740405726620.png" alt="1740405726620.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Feb 2025 14:51:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/replace-null-values-of-a-milestone-collector-with-simulation-run/m-p/13592245#M87858</guid>
      <dc:creator>jgolob</dc:creator>
      <dc:date>2025-02-24T14:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Replace null values of a Milestone Collector with simulation run end time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/replace-null-values-of-a-milestone-collector-with-simulation-run/m-p/13592246#M87859</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You could write code into a user event (or use other means to have it execute just before the stop time) that loops through the table and replaces any &lt;EM&gt;null&lt;/EM&gt; values with the current model datetime.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/90383-fill-in-stats-collector-example.fsm" target="_blank"&gt;fill-in-stats-collector-example.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(Note that rows and columns are 0-indexed when accessing the table through the bundle commands.)&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Feb 2025 07:31:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/replace-null-values-of-a-milestone-collector-with-simulation-run/m-p/13592246#M87859</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2025-02-25T07:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Replace null values of a Milestone Collector with simulation run end time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/replace-null-values-of-a-milestone-collector-with-simulation-run/m-p/13592247#M87860</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi Felix. Thank you for the response. When I added the user event I am seeing some interesting results. If I put in 600 as the 'First Time Event' I do not get any of the nulls filled in. If I change it to 559.99 most of the nulls are completed but not with the 3PM end time it replaces them with 2:19PM. Also the last null is not replaced. Is there an error in my code? &lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1740485057662.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1526705iB61C020A8EBD55B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="1740485057662.png" alt="1740485057662.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1740485264060.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1526706i72413E97C7171645/image-size/large?v=v2&amp;amp;px=999" role="button" title="1740485264060.png" alt="1740485264060.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Feb 2025 12:09:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/replace-null-values-of-a-milestone-collector-with-simulation-run/m-p/13592247#M87860</guid>
      <dc:creator>jgolob</dc:creator>
      <dc:date>2025-02-25T12:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Replace null values of a Milestone Collector with simulation run end time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/replace-null-values-of-a-milestone-collector-with-simulation-run/m-p/13592248#M87861</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In the first case, the event only fires after the stop. In my model I actually used 3599.999 because of this, but the interface rounds this to 3600.&lt;/P&gt;&lt;P&gt;So you had the right idea. But I guess you were thinking in the hh:mm format when choosing the other value by accident (5:59 != 559). That is also why the last row is not filled in. It was created after the event fired. And .99 represents 59.4 seconds which will get rounded to 59 in the code.&lt;/P&gt;&lt;P&gt;If you use 599.999 it should work. Again the interface will display 600 but the original value is still there. If you want, you can increase the number of decimals displayed in the Model Settings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1526707iA9E4E2F4607351AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture1.png" alt="capture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Feb 2025 12:33:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/replace-null-values-of-a-milestone-collector-with-simulation-run/m-p/13592248#M87861</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2025-02-25T12:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replace null values of a Milestone Collector with simulation run end time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/replace-null-values-of-a-milestone-collector-with-simulation-run/m-p/13592249#M87862</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you so much! Working well!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Feb 2025 13:07:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/replace-null-values-of-a-milestone-collector-with-simulation-run/m-p/13592249#M87862</guid>
      <dc:creator>jgolob</dc:creator>
      <dc:date>2025-02-25T13:07:48Z</dc:date>
    </item>
  </channel>
</rss>

