<?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 How do I transfer attributes from polygon to point in ArcPad in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/how-do-i-transfer-attributes-from-polygon-to-point/m-p/636760#M4594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an AXF file with a polygon feature class and a point feature class.&amp;nbsp; The intention is for the user to create a polygon, enter all the attributes for that feature, and then create points within that polygon.&amp;nbsp; I want to automaticallly transfer some of the attributes from that underlying polygon to the points.&amp;nbsp; As a first step I'm trying to select the feature, pass the value to a variable and display it in a message box.&amp;nbsp; It isn't recognising the polygon layer at all, and I can't figure out why.&amp;nbsp; The code thus far is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Dim dblX,dblY,lyrExists,objLayer,Found,objFieldName,result&lt;BR /&gt;&lt;BR /&gt;Set objLayer = Map.Layers("Polygon 1")&lt;BR /&gt;If objLayer Is Nothing Then&lt;BR /&gt;&amp;nbsp; MsgBox "Facility 1 layer features are not present",vbExclamation,"Message"&lt;BR /&gt;&amp;nbsp; objToolButton.Click&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;dblX = Map.PointerX&lt;BR /&gt;dblY = Map.PointerY&lt;BR /&gt;&lt;BR /&gt;Found = Map.SelectXY(dblX,dblY)&lt;BR /&gt;If Not Found Then&lt;BR /&gt;&amp;nbsp; MsgBox "No feature found",vbExclamation,""&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;Set objRS = objLayer.Records&lt;BR /&gt;objRS.Bookmark = Application.Map.SelectionBookmark&lt;BR /&gt;Set objFieldName = objRS.Fields("FIELD_A")&lt;BR /&gt;result = objFieldName.Value&lt;BR /&gt;&lt;BR /&gt;MsgBox result,vbOKOnly,""&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Nov 2010 06:57:02 GMT</pubDate>
    <dc:creator>MattJakab</dc:creator>
    <dc:date>2010-11-29T06:57:02Z</dc:date>
    <item>
      <title>How do I transfer attributes from polygon to point in ArcPad</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-do-i-transfer-attributes-from-polygon-to-point/m-p/636760#M4594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an AXF file with a polygon feature class and a point feature class.&amp;nbsp; The intention is for the user to create a polygon, enter all the attributes for that feature, and then create points within that polygon.&amp;nbsp; I want to automaticallly transfer some of the attributes from that underlying polygon to the points.&amp;nbsp; As a first step I'm trying to select the feature, pass the value to a variable and display it in a message box.&amp;nbsp; It isn't recognising the polygon layer at all, and I can't figure out why.&amp;nbsp; The code thus far is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Dim dblX,dblY,lyrExists,objLayer,Found,objFieldName,result&lt;BR /&gt;&lt;BR /&gt;Set objLayer = Map.Layers("Polygon 1")&lt;BR /&gt;If objLayer Is Nothing Then&lt;BR /&gt;&amp;nbsp; MsgBox "Facility 1 layer features are not present",vbExclamation,"Message"&lt;BR /&gt;&amp;nbsp; objToolButton.Click&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;dblX = Map.PointerX&lt;BR /&gt;dblY = Map.PointerY&lt;BR /&gt;&lt;BR /&gt;Found = Map.SelectXY(dblX,dblY)&lt;BR /&gt;If Not Found Then&lt;BR /&gt;&amp;nbsp; MsgBox "No feature found",vbExclamation,""&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;Set objRS = objLayer.Records&lt;BR /&gt;objRS.Bookmark = Application.Map.SelectionBookmark&lt;BR /&gt;Set objFieldName = objRS.Fields("FIELD_A")&lt;BR /&gt;result = objFieldName.Value&lt;BR /&gt;&lt;BR /&gt;MsgBox result,vbOKOnly,""&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 06:57:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-do-i-transfer-attributes-from-polygon-to-point/m-p/636760#M4594</guid>
      <dc:creator>MattJakab</dc:creator>
      <dc:date>2010-11-29T06:57:02Z</dc:date>
    </item>
  </channel>
</rss>

