>>> edit = arcpy.da.Editor(mxd) Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> RuntimeError: cannot open workspace >>>
Solved! Go to Solution.
gdb = r"C:\AllMyLayers.gdb" edit = arcpy.da.editor(gdb) edit.startEditing() #you may want to adjust the parameters here. You can read up on the documentation ---whatever you want to do in your editing session edit.stopEditing() #again, you may want to adjust the save parameter.
gdb = r"C:\AllMyLayers.gdb" edit = arcpy.da.editor(gdb) edit.startEditing() #you may want to adjust the parameters here. You can read up on the documentation ---whatever you want to do in your editing session edit.stopEditing() #again, you may want to adjust the save parameter.
arcpy.SelectLayerByAttribute_management("Parcels", "NEW_SELECTION", '"TDPDetails"' + "=" + "'" + selection + "'")
arcpy.SelectLayerByAttribute_management("Parcels", "NEW_SELECTION", [TDPDetails] + "=" + "'" + selection + "'")
gds = r"C:/Users/Administrator/AppData/Roaming/ESRI/Desktop10.1/ArcCatalog/GISSERVER_SQLEXPRESS.gds/KWAGISMAIN" edit = arcpy.da.Editor(gds) Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> RuntimeError: cannot open workspace
What you want is likely an 'Editor' object
ArcGIS Help (10.2, 10.2.1, and 10.2.2)
.. resources.arcgis.com/en/help/main/10.2/index.html#//00s300000008000000
/Martin