<?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 What is the command to get the simulation start time in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/what-is-the-command-to-get-the-simulation-start-time/m-p/13546006#M51721</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.1.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I would like to use the start simulation time to adjust the Offset Time for the arrivals to start in the Schedule Source Activity. What is the command which will give me the simulation time?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Tee&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2019 16:22:28 GMT</pubDate>
    <dc:creator>tee_hiett</dc:creator>
    <dc:date>2019-06-11T16:22:28Z</dc:date>
    <item>
      <title>What is the command to get the simulation start time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/what-is-the-command-to-get-the-simulation-start-time/m-p/13546006#M51721</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.1.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I would like to use the start simulation time to adjust the Offset Time for the arrivals to start in the Schedule Source Activity. What is the command which will give me the simulation time?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Tee&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 16:22:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/what-is-the-command-to-get-the-simulation-start-time/m-p/13546006#M51721</guid>
      <dc:creator>tee_hiett</dc:creator>
      <dc:date>2019-06-11T16:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is the command to get the simulation start time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/what-is-the-command-to-get-the-simulation-start-time/m-p/13546007#M51722</link>
      <description>&lt;P&gt;I'm not understanding what you're trying to do. The start simulation time is always 0.&lt;/P&gt;&lt;P&gt; You can use&lt;/P&gt;&lt;PRE&gt;Model.time &lt;/PRE&gt;&lt;P&gt;to get the current simulation time.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 17:19:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/what-is-the-command-to-get-the-simulation-start-time/m-p/13546007#M51722</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2019-06-11T17:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: What is the command to get the simulation start time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/what-is-the-command-to-get-the-simulation-start-time/m-p/13546008#M51723</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/87/matthew.g.html" nodeid="87"&gt;@Matthew Gillespie&lt;/A&gt;, My concept of simulation start time comes from FlexSimHC Verson 5.3.10 command getsimstarttime(). I should have used Model Start Time as shown in the attached ModelSettings JPEG file&lt;/P&gt;
&lt;P&gt;Maybe if it would help if I briefly explain the process I trying to use and get your suggestions for making it work. The process begins with building the scheduled arrival of patients in an Excel workbook as shown in the Excel 1 JPEG file. The column Sch_Time contains the scheduled arrival times for each patient. In the Time column, I converted the scheduled time to the number of minutes into the simulation if the simulation process started at the time of the arrival of the first patient.&lt;/P&gt;
&lt;P&gt;After importing these data into the FlexSim model, I have just the Source Activity with the offset time of 90 minutes which means that the simulation will start at 90 minutes later the first patient will arrive at 8:30 AM. This is shown in the QuickProperties JPEG file.Of course, this means that if the user wants to open the clinic at 6 AM instead of 7 AM the Offset Time will have to be 150 minutes For the first patient to arrive at 8:30 AM.&lt;/P&gt;
&lt;P&gt;I would rather that the user not have to remember to change the Offset Time when changing the Model Start Time. I was thinking that with access to the Model Start Time, I could have a simple program compute the Offset Time based on that value of Offset Time.&lt;/P&gt;
&lt;P&gt;Does this approach seem reasonable and doable? Is there a better way to do this?&lt;/P&gt;
&lt;P&gt;Thanks for the help.&lt;/P&gt;
&lt;P&gt;Tee&lt;/P&gt;
&lt;P&gt;&lt;A id="19844" href="https://answers.flexsim.com/storage/temp/19844-excel-1.jpg"&gt;excel-1.jpg&lt;/A&gt; &lt;A id="19845" href="https://answers.flexsim.com/storage/temp/19845-model-settings.jpg"&gt;model-settings.jpg&lt;/A&gt; &lt;A id="19850" href="https://answers.flexsim.com/storage/temp/19850-quickproperties.jpg"&gt;quickproperties.jpg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 16:21:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/what-is-the-command-to-get-the-simulation-start-time/m-p/13546008#M51723</guid>
      <dc:creator>tee_hiett</dc:creator>
      <dc:date>2019-06-12T16:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: What is the command to get the simulation start time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/what-is-the-command-to-get-the-simulation-start-time/m-p/13546009#M51724</link>
      <description>&lt;P&gt;I would use a DateTime Source activity set to the "Use Model Start Date/Time" Time Mode. That way you can just define times for arrivals and the patients will show up at that time in the model regardless of what the model's start time is. (Note that arrivals before the start time will be ignored). See the attached model and excel file.&lt;/P&gt;&lt;P&gt;&lt;A id="19858" href="https://answers.flexsim.com/storage/attachments/19858-importschedule.fsm"&gt;importschedule.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A id="19859" href="https://answers.flexsim.com/storage/attachments/19859-schedule.xlsx"&gt;schedule.xlsx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19860-datetime.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1499369iD631AEE1C0934A54/image-size/large?v=v2&amp;amp;px=999" role="button" title="19860-datetime.png" alt="19860-datetime.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 22:22:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/what-is-the-command-to-get-the-simulation-start-time/m-p/13546009#M51724</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2019-06-12T22:22:01Z</dc:date>
    </item>
  </channel>
</rss>

