<?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 Does anyone know how to reference the tracklog layer in a script? in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/does-anyone-know-how-to-reference-the-tracklog/m-p/697009#M5047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know how to toggle the visibility of the tracklog from within a script?&amp;nbsp; When my application starts, it asks the user if they want to enable the GPS.&amp;nbsp; If the response is yes, it issues the commands:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]application.executecommand("gpsenable")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;application.executecommand("gpstracklog")[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By default, when the GPS tracklog is started, it is made visible.&amp;nbsp; I'd rather have it collected in the background, but cannot figure out how to reference the tracklog layer to set its visibility to false.&amp;nbsp; I've tried a variety of permutations of the following statement, none of which work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]Set objTrackLogLayer = Map.Layers("Tracklog.shp")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;objTrackLogLayer.visible = "False"[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;D. Burn&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anchorage, AK&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2011 22:46:11 GMT</pubDate>
    <dc:creator>DouglasBurn</dc:creator>
    <dc:date>2011-06-20T22:46:11Z</dc:date>
    <item>
      <title>Does anyone know how to reference the tracklog layer in a script?</title>
      <link>https://community.esri.com/t5/arcpad-questions/does-anyone-know-how-to-reference-the-tracklog/m-p/697009#M5047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know how to toggle the visibility of the tracklog from within a script?&amp;nbsp; When my application starts, it asks the user if they want to enable the GPS.&amp;nbsp; If the response is yes, it issues the commands:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]application.executecommand("gpsenable")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;application.executecommand("gpstracklog")[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By default, when the GPS tracklog is started, it is made visible.&amp;nbsp; I'd rather have it collected in the background, but cannot figure out how to reference the tracklog layer to set its visibility to false.&amp;nbsp; I've tried a variety of permutations of the following statement, none of which work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]Set objTrackLogLayer = Map.Layers("Tracklog.shp")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;objTrackLogLayer.visible = "False"[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;D. Burn&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anchorage, AK&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 22:46:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/does-anyone-know-how-to-reference-the-tracklog/m-p/697009#M5047</guid>
      <dc:creator>DouglasBurn</dc:creator>
      <dc:date>2011-06-20T22:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to reference the tracklog layer in a script?</title>
      <link>https://community.esri.com/t5/arcpad-questions/does-anyone-know-how-to-reference-the-tracklog/m-p/697010#M5048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe not the answer you want to hear, but I had a similar problem.&amp;nbsp; (If the tracklog is visible and it becomes big, it becomes very slow each time the map is redrawn.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could not find a way to make the tracklog invisible, so ended up writing a small piece of code that writes a custom tracklog (by appending data to a text file).&amp;nbsp; If you do not need to display the tracklog to the user, this idea works well and fast, even for very big tracklog files. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On each x number of GPS positions received, I do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;L_Line = GPS.X&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L_Line = L_Line &amp;amp;&amp;nbsp; vbtab &amp;amp; GPS.Y&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L_Line = L_Line &amp;amp;&amp;nbsp; vbtab &amp;amp; CStr(Application.GPS.Properties("SOG"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L_Line = L_Line &amp;amp;&amp;nbsp; vbtab &amp;amp; GPS.Altitude&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L_Line = L_Line &amp;amp;&amp;nbsp; vbtab &amp;amp; Application.GPS.Properties("UTC")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L_Line = L_Line &amp;amp;&amp;nbsp; vbtab &amp;amp; Now&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L_Line = L_Line &amp;amp;&amp;nbsp; vbtab &amp;amp; CStr(Application.GPS.Properties("COG"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L_Line = L_Line &amp;amp;&amp;nbsp; vbtab &amp;amp; CStr(Application.GPS.Properties("SATS_USED"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L_Line = L_Line &amp;amp;&amp;nbsp; vbtab &amp;amp; CStr(Application.GPS.Properties("HPE"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L_Line = L_Line &amp;amp;&amp;nbsp; vbtab &amp;amp; CStr(Application.GPS.Properties("VPE"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Set L_FileToWrite = objFSO.OpenTextFile(Trackdir &amp;amp; "TrackLog.txt", 8, True)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L_FileToWrite.WriteLine L_Line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L_FileToWrite.Close&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 12:29:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/does-anyone-know-how-to-reference-the-tracklog/m-p/697010#M5048</guid>
      <dc:creator>EddieViljoen</dc:creator>
      <dc:date>2011-07-08T12:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to reference the tracklog layer in a script?</title>
      <link>https://community.esri.com/t5/arcpad-questions/does-anyone-know-how-to-reference-the-tracklog/m-p/697011#M5049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has anyone found a solution to this problem?&amp;nbsp; I would like to have a turn on and turn off tracklog visibility button so a user doesn't &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;have to open the TOC to execute the command.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought this or a similar variation would have worked but no luck so far:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Application.Map.Layers("GPS Tracklog").visible=false &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2013 03:52:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/does-anyone-know-how-to-reference-the-tracklog/m-p/697011#M5049</guid>
      <dc:creator>JasonTrook</dc:creator>
      <dc:date>2013-02-09T03:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to reference the tracklog layer in a script?</title>
      <link>https://community.esri.com/t5/arcpad-questions/does-anyone-know-how-to-reference-the-tracklog/m-p/697012#M5050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jason,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check out couple of ArcPad Team Blog topics, &lt;/SPAN&gt;&lt;A href="http://arcpadteam.blogspot.com/2012/04/custom-toolbar-for-working-with-arcpad.html"&gt;Custom toolbar for working w/ArcPad Tracklogs&lt;/A&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;A href="http://arcpadteam.blogspot.com/2011/12/hi-everyone-there-is-new-sample-on.html"&gt;How to archive GPS Tracklog using VBScript, JScript or Python&lt;/A&gt;&lt;SPAN&gt; using sample found on ArcGIS.com Gallery &amp;gt; &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=a5e11ba4a4d04b4a8f84757911ceb413"&gt;ArcPad&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Denise&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2013 15:11:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/does-anyone-know-how-to-reference-the-tracklog/m-p/697012#M5050</guid>
      <dc:creator>DeniseKing</dc:creator>
      <dc:date>2013-02-09T15:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to reference the tracklog layer in a script?</title>
      <link>https://community.esri.com/t5/arcpad-questions/does-anyone-know-how-to-reference-the-tracklog/m-p/697013#M5051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Denise,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This applet is great and has been very helpful.&amp;nbsp; However, I would like to expand the capabilities of the applet by adding two new &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;buttons -&amp;gt; Turn off tracklog visibility and turn on tracklog visibility.&amp;nbsp; I can turn on/off the tracklog itself but haven't been successful &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in programming a command to turn on/off the visibility.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Application.Map.Layers("GPS Tracklog").visible=false &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code works for other layers in my TOC but not the tracklog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2013 16:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/does-anyone-know-how-to-reference-the-tracklog/m-p/697013#M5051</guid>
      <dc:creator>JasonTrook</dc:creator>
      <dc:date>2013-02-09T16:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to reference the tracklog layer in a script?</title>
      <link>https://community.esri.com/t5/arcpad-questions/does-anyone-know-how-to-reference-the-tracklog/m-p/697014#M5052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can access the tracklog by using its index value rather than its name : &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Map.Layers(0).Visible=true&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI, If you use Map.Layers(-1) you can access the Map Grid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this answers your query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gareth&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2013 19:45:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/does-anyone-know-how-to-reference-the-tracklog/m-p/697014#M5052</guid>
      <dc:creator>GarethWalters</dc:creator>
      <dc:date>2013-02-10T19:45:36Z</dc:date>
    </item>
  </channel>
</rss>

