I have two feature classes that are both parcels. They have a field for residential type with the values being either "Residential" or "Non-Residential". They also have another field for the shape area. I am trying to write a script with arcpy that will go through the feature classes and create a row in a new table that has the name, residential type, and the total area. I am having trouble with getting the code to select and add to the table to residential types. I am also trying to do this using cursors.
This is what I have so far
import arcpy from arcpy import env import os env.overwriteOutput = 1 env.workspace = "C://Users//dylan//Downloads//Data5//Montgomery.gdb" tab = "SummaryTable" fcs = arcpy.ListFeatureClasses("*", "Polygon") arcpy.CreateTable_management(env.workspace, tab) arcpy.AddField_management(tab, "name", "string") arcpy.AddField_management(tab, "restype", "string") arcpy.AddField_management(tab, "area", "float") tabcur = arcpy.da.InsertCursor(env.workspace + os.sep + tab, ["name","restype","area"])