<?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: Running a script at the beginning of polyline entry in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/running-a-script-at-the-beginning-of-polyline/m-p/557538#M4046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't have the exact code for you but you might try something like this if you are using GPS position averaging for vertices.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the OnAverageStart event of the GPS object to run a code that will get and hold the GPS time in a variable that is accessible out of scope.&amp;nbsp; Since this code will run with each new positioning averaging event, you will need some code to restrict the time capture to the first averaging event.&amp;nbsp; Then perhaps at the OnFeatureAdded event, you can capture the end time, write the start and end times to appropriate fields or what have you and clear out the global variable that holds the beginning time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Dec 2010 01:23:14 GMT</pubDate>
    <dc:creator>IvanKautter</dc:creator>
    <dc:date>2010-12-05T01:23:14Z</dc:date>
    <item>
      <title>Running a script at the beginning of polyline entry</title>
      <link>https://community.esri.com/t5/arcpad-questions/running-a-script-at-the-beginning-of-polyline/m-p/557537#M4045</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;SPAN&gt;I am recording data along polylines (transects) with Arcpad 10 running on my GPS. I would like to have beginning and end times for each feature (transect). So I would like to run a simple script at the beginning of capture of polyline, specifically to get GPS time. "Onfeatureadded" event fires only when the capture of vertices is completed and thus can only give GPS time of the end of polyline capture. Is there an event specific to the beginning of polyline capture?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Dec 2010 18:51:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/running-a-script-at-the-beginning-of-polyline/m-p/557537#M4045</guid>
      <dc:creator>AndréDesrochers</dc:creator>
      <dc:date>2010-12-04T18:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Running a script at the beginning of polyline entry</title>
      <link>https://community.esri.com/t5/arcpad-questions/running-a-script-at-the-beginning-of-polyline/m-p/557538#M4046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't have the exact code for you but you might try something like this if you are using GPS position averaging for vertices.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the OnAverageStart event of the GPS object to run a code that will get and hold the GPS time in a variable that is accessible out of scope.&amp;nbsp; Since this code will run with each new positioning averaging event, you will need some code to restrict the time capture to the first averaging event.&amp;nbsp; Then perhaps at the OnFeatureAdded event, you can capture the end time, write the start and end times to appropriate fields or what have you and clear out the global variable that holds the beginning time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Dec 2010 01:23:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/running-a-script-at-the-beginning-of-polyline/m-p/557538#M4046</guid>
      <dc:creator>IvanKautter</dc:creator>
      <dc:date>2010-12-05T01:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Running a script at the beginning of polyline entry</title>
      <link>https://community.esri.com/t5/arcpad-questions/running-a-script-at-the-beginning-of-polyline/m-p/557539#M4047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Ivan for the advice, I will check how to turn on vertex position averaging and do as you suggest, which should not be too complicated. If and when I get working code, I will post it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 18:34:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/running-a-script-at-the-beginning-of-polyline/m-p/557539#M4047</guid>
      <dc:creator>AndréDesrochers</dc:creator>
      <dc:date>2010-12-06T18:34:06Z</dc:date>
    </item>
  </channel>
</rss>

