Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/a/r/arcapi-HEAD/arcapi.py   arcapi(Download)
 
    cnt = 0
    with arcpy.da.UpdateCursor(x, cols, where_clause = xw) as uc:
        for row in uc:
            ido = row[0]

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/FM5-33CCM.py   defense-and-intel-analysis-toolbox(Download)
    arcpy.AddField_management(outputCCM,"ccm","DOUBLE")
    cursorFieldList = ["OID@","ccm","f1","f2"] + inputFactorList
    ccmRows = arcpy.da.UpdateCursor(outputCCM,cursorFieldLIst)
    for ccmRow in ccmRows:
        ccm = 1.0

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/AddTravelTimeToRoads.py   defense-and-intel-analysis-toolbox(Download)
    arcpy.AddMessage("Calculating travel time for " + str(int(arcpy.GetCount_management(inputFeatures).getOutput(0)) ) + " features ...")
    if debug == True: arcpy.AddMessage("OID, length, type, to-from, from-to")
    rows = arcpy.da.UpdateCursor(inputFeatures,["SHAPE@","TYP","TF_MINUTES","FT_MINUTES","OID@"])
    for row in rows:
        shape = row[0] # get shape for length property

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/LineFeatureAngle.py   defense-and-intel-analysis-toolbox(Download)
 
    arcpy.AddMessage("Updating " + inputAngleField + " field for " + str(arcpy.GetCount_management(inputFeatures).getOutput(0)) + " rows ...")
    with arcpy.da.UpdateCursor(inputFeatures,["OID@","SHAPE@",inputAngleField]) as rows:
        for row in rows:
            angle = None