<?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: Access to Current Time Slider Value via ArcPy in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/access-to-current-time-slider-value-via-arcpy/m-p/796580#M130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That looks like what I was looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I should have had the foresight to use the search terms "time" "slider" "object".&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The search gives "DataFrameTime" as the first hit :-).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All for now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolando&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2012 19:47:14 GMT</pubDate>
    <dc:creator>RolandoRaqueño</dc:creator>
    <dc:date>2012-05-02T19:47:14Z</dc:date>
    <item>
      <title>Access to Current Time Slider Value via ArcPy</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/access-to-current-time-slider-value-via-arcpy/m-p/796578#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are searching for an ArcPy method that can query the current time set by the user on the time slider so that we can pass this information to another model that will use it as a starting point for a simulation.&amp;nbsp; Not sure if this is in the ArcPy Data Access Module or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our intent is to capture two points in the timeline and pass that information to a model that will take the time-endpoints and initiate an interpolation prediction model of imagery (through ModelBuilder) between those two times and send it back into the ArcMap environment for comparison between the real imagery specified by the two time points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Capture of this information ideally would be initiated from ArcMap using an add-in or similar process that the user can invoke.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have seen references of accessing time slider information from the Web API end (&lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2011/07/20/visualizing-time-aware-data-in-a-web-map/"&gt;http://blogs.esri.com/esri/arcgis/2011/07/20/visualizing-time-aware-data-in-a-web-map/&lt;/A&gt;&lt;SPAN&gt;), but would like to start with a simple case and do it from ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any insight would be welcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R. Raqueño&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 14:06:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/access-to-current-time-slider-value-via-arcpy/m-p/796578#M128</guid>
      <dc:creator>RolandoRaqueño</dc:creator>
      <dc:date>2012-05-02T14:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Access to Current Time Slider Value via ArcPy</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/access-to-current-time-slider-value-via-arcpy/m-p/796579#M129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rolando,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, you will want to use the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/DataFrameTime/00s300000023000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;DataFrameTime class&lt;/A&gt;&lt;SPAN&gt; in the mapping module to get this information. Below is an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd")
df = arcpy.mapping.ListDataFrames(mxd, "Traffic Analysis")[0]
time = df.time.currentTime
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:12:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/access-to-current-time-slider-value-via-arcpy/m-p/796579#M129</guid>
      <dc:creator>ChrisFox3</dc:creator>
      <dc:date>2021-12-12T09:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Access to Current Time Slider Value via ArcPy</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/access-to-current-time-slider-value-via-arcpy/m-p/796580#M130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That looks like what I was looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I should have had the foresight to use the search terms "time" "slider" "object".&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The search gives "DataFrameTime" as the first hit :-).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All for now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolando&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 19:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/access-to-current-time-slider-value-via-arcpy/m-p/796580#M130</guid>
      <dc:creator>RolandoRaqueño</dc:creator>
      <dc:date>2012-05-02T19:47:14Z</dc:date>
    </item>
  </channel>
</rss>

