<?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 Route Collection Application (ArcPad Studio and VB-script) in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/route-collection-application-arcpad-studio-and-vb/m-p/671193#M4854</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;I'm building a route collection application based on ArcPad (presently 8SP4). The software will based on user attributes save track points from GPS to a shape file automatically. At the same time the user will record other interesting points (also from GPS) by filling in a custom form. All this is working OK, but my users will be furious if I release the application as it is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, I do not want to use the built in tracklog (I hate it and think it is useless).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My present problem is that I can not add points to the track points shape file and keep it invisible (visible=false). This triggers a constant refresh of the layer every time a new point is recorded. This is annoying and slows down the application. (I can turn the layer off and keep recording, but as soon as I record a point to the other shape file it becomes visible again.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need a way ether to regulate refreshes manually (in code) or to keep the layer invisible so no refresh is needed. Other suggestions is also welcome...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The event is triggered by the System Objects GPS onposition event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Sub AddRoutePoint() 'Called by onposition event&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if Logging then 'True if logging is activated&lt;BR /&gt;&amp;nbsp;&amp;nbsp; GetGpsMGRS 'Sub that reads GPS and populates global variables&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Dim RouteLayer, RouteSel, RouteRS&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Set RouteLayer = map.Layers("Route") 'This refers to my route points shape file layer&lt;BR /&gt;&amp;nbsp;&amp;nbsp; If RouteLayer.CanEdit Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteLayer.Editable = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call Map.AddFeatureXY(GpsX,GpsY, false) 'Global GPS variables&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set RouteSel = Application.Map.SelectionLayer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set RouteRS = RouteSel.Records&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Bookmark = Map.SelectionBookmark&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Fields("MGRS").Value = gpsMGRS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Fields("RouteType").Value = RouteType&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Fields("RouteWidt").Value = LaneNumbers&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Fields("RouteStat").Value = RouteStatus&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Fields("GPS_HDOP").Value = gpsHDOP&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Fields("GPS_SOG").Value = gpsSOG&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Fields("GPS_COG").Value = gpsCOG&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Update&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end if&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end if&lt;BR /&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A thought: Is it possible to avoid the problem if the route points was recorded to a polyline shape file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another thought: Is it possible to add the points to a shape file that is NOT opened in the application, and thereby avoiding the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Klas Karlsson, SWEDEN&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jul 2010 18:10:59 GMT</pubDate>
    <dc:creator>KlasKarlsson</dc:creator>
    <dc:date>2010-07-23T18:10:59Z</dc:date>
    <item>
      <title>Route Collection Application (ArcPad Studio and VB-script)</title>
      <link>https://community.esri.com/t5/arcpad-questions/route-collection-application-arcpad-studio-and-vb/m-p/671193#M4854</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;I'm building a route collection application based on ArcPad (presently 8SP4). The software will based on user attributes save track points from GPS to a shape file automatically. At the same time the user will record other interesting points (also from GPS) by filling in a custom form. All this is working OK, but my users will be furious if I release the application as it is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, I do not want to use the built in tracklog (I hate it and think it is useless).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My present problem is that I can not add points to the track points shape file and keep it invisible (visible=false). This triggers a constant refresh of the layer every time a new point is recorded. This is annoying and slows down the application. (I can turn the layer off and keep recording, but as soon as I record a point to the other shape file it becomes visible again.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need a way ether to regulate refreshes manually (in code) or to keep the layer invisible so no refresh is needed. Other suggestions is also welcome...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The event is triggered by the System Objects GPS onposition event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Sub AddRoutePoint() 'Called by onposition event&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if Logging then 'True if logging is activated&lt;BR /&gt;&amp;nbsp;&amp;nbsp; GetGpsMGRS 'Sub that reads GPS and populates global variables&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Dim RouteLayer, RouteSel, RouteRS&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Set RouteLayer = map.Layers("Route") 'This refers to my route points shape file layer&lt;BR /&gt;&amp;nbsp;&amp;nbsp; If RouteLayer.CanEdit Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteLayer.Editable = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call Map.AddFeatureXY(GpsX,GpsY, false) 'Global GPS variables&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set RouteSel = Application.Map.SelectionLayer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set RouteRS = RouteSel.Records&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Bookmark = Map.SelectionBookmark&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Fields("MGRS").Value = gpsMGRS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Fields("RouteType").Value = RouteType&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Fields("RouteWidt").Value = LaneNumbers&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Fields("RouteStat").Value = RouteStatus&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Fields("GPS_HDOP").Value = gpsHDOP&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Fields("GPS_SOG").Value = gpsSOG&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Fields("GPS_COG").Value = gpsCOG&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RouteRS.Update&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end if&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end if&lt;BR /&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A thought: Is it possible to avoid the problem if the route points was recorded to a polyline shape file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another thought: Is it possible to add the points to a shape file that is NOT opened in the application, and thereby avoiding the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Klas Karlsson, SWEDEN&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 18:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/route-collection-application-arcpad-studio-and-vb/m-p/671193#M4854</guid>
      <dc:creator>KlasKarlsson</dc:creator>
      <dc:date>2010-07-23T18:10:59Z</dc:date>
    </item>
  </channel>
</rss>

