Error executing: parameters are not valid for calculating area

المشرف العام

Administrator
طاقم الإدارة
When I run the following commands I get the error

arcpy.CalculateField_management(out_path, "area","!shape.area@squaremeters!")raise earcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.ERROR 000989: Tool CalculateField cannot use VB expressions for servicesFailed to execute (CalculateField).

out_path = '\\\\storage1\\gis\\output.shp'arcpy.Intersect_analysis([sys.argv[1], sys.argv[2]], out_path, "ALL")arcpy.AddField_management(out_path, "area", "DOUBLE")arcpy.AddField_management(out_path, "dist", "DOUBLE")arcpy.CalculateField_management(out_path, "area","!shape.area@squaremeters!")I'm trying to calculate the area, and it as a percentage, and add the values to the output shapefile table



أكثر...
 
أعلى