import arcpy arcpy.env.workspace = r"K:\programko\cv08.gdb" featureClass = "kraje" """ desc = arcpy.Describe(featureClass) spatialRef = desc.SpatialReference print desc.Name featureClassList = arcpy.ListFeatureClasses() print featureClassList fieldList = arcpy.ListFields(featureClass) for field in fieldList: print field.name rows = arcpy.SearchCursor(featureClass, "OB01>600000") row = rows.next() while row: print row.NAZEV row = rows.next() rows = arcpy.UpdateCursor(featureClass) row = rows.next() naz = "OutField" val = 2 while row: row.setValue(naz, val) rows.updateRow(row) row = rows.next() """ naz = "OutField" val = 5 pridavac = arcpy.InsertCursor(featureClass) novyRiadok = pridavac.newRow() novyRiadok.setValue(naz, val) novyRiadok.setValue("NAZEV", "novy_kraj") pridavac.insertRow(novyRiadok)