I have created a new shapefile and want to add shape attribute from another existing shapefile. It will be a recursive process with update of shape attributes of new shapefile (ofc) more than 2 times. Any help is appreciative. Following is what I am trying to make work:
Import arcpy ofc = "C:/outFC.shp" ifc = "C:/inFC.shp" fields = arcpy.ListFields(ifc,"*","ALL") for f in fields: shape = f.Shape query = '"Shape" = \'' + str(shape) + '\'' cur = arcpy.UpdateCursor(ofc,query) del f, fields
Diagram: I want to get FID (0) from first table and add it to second table of new shapefile and only need FID, Shape, and id fields in second table.