2

I'm attempting to copy a single polygon and paste it 113 times to make "parcels" for a condominium building.

4
  • What software do you have access to to do this? Is this something you are going to do multiple times or is this just a one off?
    – dklassen
    Nov 26, 2013 at 18:05
  • Im using arcmap with an arcview license. I will need to do this a few more times with multiple condominium buildings.
    – Greg
    Nov 26, 2013 at 18:07
  • 2
    if you start with one and create 10, then copy the 10 selected parcels is will be much quicker. Ctrl+A then Ctrl+V will achieve this in editing mode.
    – Mapperz
    Nov 26, 2013 at 18:13
  • Using pure copy and paste, as @Mapperz said, will get you there in about 7 cycles if you do Ctrl+A, Ctrl+V every time as the features double with each cycle. 1, 2, 4, 8, 16, 32, 64, 128 Nov 26, 2013 at 18:41

2 Answers 2

5

In ArcMap - you could do the following: Select the polygon you want to copy. Open the Python window and type in the following code:

cur,row = None, None
cur = arcpy.SearchCursor("NAME OF THE LAYER HERE")

x = 113

for row in cur:
    shp = row.getValue("SHAPE")

cur,row = None, None
cur = arcpy.InsertCursor("NAME OF THE LAYER HERE")

for i in range(0,x):
    feat = cur.newRow()
    feat.shape = shp
    cur.insertRow(feat)

This will add 113 copies of the selected polygon.

2
  • Just as a note - this script snippet will not copy any attributes from the source polygon - only the geometry.
    – dklassen
    Nov 26, 2013 at 18:38
  • One way this can be improved is by using the data access module to read/write all of the attributes. I got it to work using the SearchCursor and InsertCursor but needed to hardcode the fields in in order for it work. Dec 15, 2019 at 2:28
2

You can generate a big polygon covering the condominium buildings, then use the tool-cut polygon or reshape feature, to delete the roads between buildings. Actually I also did't find a better way to deal with it, cause I remember there is a method which can generate the array of features (like polygon), but unfortunately, I did't find it...Hope this will help you in some degree.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.