<?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 VBA - how to automatically add rows to shp file? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/vba-how-to-automatically-add-rows-to-shp-file/m-p/405354#M10833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to ArcObjects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to write a simple VBA macro (ArcView 9.3.1), that automatically adds new rows to my shp file. I couldnt find any example on the internet, so I post it here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Detailed idea is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ex: I have shp file with 10 rows. Now Copy first row and duplicate it 4 times, then go to second row copy it and duplicate it 4 times, etc. In the result I should have 50 rows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The duplicated points should be in the same position (just as 'copy a point and paste it in the same location' in editor mode)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Konrad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Nov 2010 16:52:34 GMT</pubDate>
    <dc:creator>KonradDebski</dc:creator>
    <dc:date>2010-11-20T16:52:34Z</dc:date>
    <item>
      <title>VBA - how to automatically add rows to shp file?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vba-how-to-automatically-add-rows-to-shp-file/m-p/405354#M10833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to ArcObjects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to write a simple VBA macro (ArcView 9.3.1), that automatically adds new rows to my shp file. I couldnt find any example on the internet, so I post it here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Detailed idea is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ex: I have shp file with 10 rows. Now Copy first row and duplicate it 4 times, then go to second row copy it and duplicate it 4 times, etc. In the result I should have 50 rows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The duplicated points should be in the same position (just as 'copy a point and paste it in the same location' in editor mode)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Konrad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Nov 2010 16:52:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vba-how-to-automatically-add-rows-to-shp-file/m-p/405354#M10833</guid>
      <dc:creator>KonradDebski</dc:creator>
      <dc:date>2010-11-20T16:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - how to automatically add rows to shp file?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vba-how-to-automatically-add-rows-to-shp-file/m-p/405355#M10834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Konrad,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are several ways to create new rows in a layer. The easiest (but slowest if you are doing 100's of rows) is the IFeature.Store method. You get a handle on the Featureclass (your shapefile) then create a new Feature which you populate then store.&amp;nbsp; The key words you need to be searching for in the VBA developer help are &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;IFeature&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;IFeatureClass&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;CreateFeature&lt;/SPAN&gt;&lt;SPAN&gt;. If you are going to do any VBA development you should make sure you have VBA Developer Help installed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 19:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vba-how-to-automatically-add-rows-to-shp-file/m-p/405355#M10834</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2010-11-22T19:12:12Z</dc:date>
    </item>
  </channel>
</rss>

