Removing grid and graticule layer using ArcPy?

المشرف العام

Administrator
طاقم الإدارة
I work on arcview 10.3. How can i remove grid and graticule by using arcpy? i have this code:

import arcpy,os,sys,string import arcpy.mapping from arcpy import env env.workspace = r"F:\Projects\Roni\marlogDarom\gis\fuelSt" for mxd in arcpy.ListFiles("*.mxd"): print mxd arcpy.DeleteGridsAndGraticules_cartography("C:/Python_Output/grid_layers.gdb /QUAD_24K", "Plaza Washington (Quad_24K_NAD83)") print 'delete' mapdoc.save() del mxd this code delete complitly the grid, and i want just to remove it. anyone know how to do it?

I don't want to remove any layer from the MXD.



أكثر...
 
أعلى