<?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 Creating a Polygon from entered coordinates in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/creating-a-polygon-from-entered-coordinates/m-p/273541#M2004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to create a square polygon from a pair of coords.&amp;nbsp; Figuring out the extent of the square is easy but how do I add the array of points into the polygon shapefile?&amp;nbsp; I've been playing around with the recordset object but I can't figure out how to add a feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I can do it using the Map.AddFeature function but I also need to enter attribute values from forms which I kind of have to do using recordset.Fields().Value.&amp;nbsp; Is it possible to add features to a shapefile through recordset?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Nov 2011 10:50:20 GMT</pubDate>
    <dc:creator>DanikBourdeau</dc:creator>
    <dc:date>2011-11-23T10:50:20Z</dc:date>
    <item>
      <title>Creating a Polygon from entered coordinates</title>
      <link>https://community.esri.com/t5/arcpad-questions/creating-a-polygon-from-entered-coordinates/m-p/273541#M2004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to create a square polygon from a pair of coords.&amp;nbsp; Figuring out the extent of the square is easy but how do I add the array of points into the polygon shapefile?&amp;nbsp; I've been playing around with the recordset object but I can't figure out how to add a feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I can do it using the Map.AddFeature function but I also need to enter attribute values from forms which I kind of have to do using recordset.Fields().Value.&amp;nbsp; Is it possible to add features to a shapefile through recordset?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 10:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/creating-a-polygon-from-entered-coordinates/m-p/273541#M2004</guid>
      <dc:creator>DanikBourdeau</dc:creator>
      <dc:date>2011-11-23T10:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Polygon from entered coordinates</title>
      <link>https://community.esri.com/t5/arcpad-questions/creating-a-polygon-from-entered-coordinates/m-p/273542#M2005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I guess using Map.AddFeature is the only way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the best way to add attributes for the feature that is added using Map.AddFeature?&amp;nbsp; I know I can set it to open the edit form automatically but I already have the values so I don't really need the form.&amp;nbsp; I just need to input the values at the same time the feature is being added.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 06:41:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/creating-a-polygon-from-entered-coordinates/m-p/273542#M2005</guid>
      <dc:creator>DanikBourdeau</dc:creator>
      <dc:date>2011-12-05T06:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Polygon from entered coordinates</title>
      <link>https://community.esri.com/t5/arcpad-questions/creating-a-polygon-from-entered-coordinates/m-p/273543#M2006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nevermind, I figured it out. Don't know why it eluded me for so long.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once the feature is created select it's attribute table with Application.Map.SelectionLayer.Records then you can add values to the specific fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing I'm not clear on is using Bookmark.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set objFeat = Application.Map.SelectionLayer.Records&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;objFeat.Bookmark = Application.Map.SelectionBookmark&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;objFeat.Fields("Field1").Value = now()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;objFeat.Fields("Field2").Value = Applet.Forms("T1").Pages("Page1").Controls("C1").Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;objFeat.Update&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I have to use the Bookmark property?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 09:30:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/creating-a-polygon-from-entered-coordinates/m-p/273543#M2006</guid>
      <dc:creator>DanikBourdeau</dc:creator>
      <dc:date>2011-12-05T09:30:56Z</dc:date>
    </item>
  </channel>
</rss>

