Delete Grids And Graticules (Cartography)

Summary

Deletes all the features associated with one or more selected grid and graticule layers from a feature dataset.

Usage

Syntax

DeleteGridsAndGraticules_cartography (in_grid_dataset, grid_name)
ParameterExplanationData Type
in_grid_dataset

The feature dataset location where the grid and graticule layers that can be deleted are stored.

Feature Dataset
grid_name
[grid_name,...]

Lists the grid and graticule layers in the feature dataset that can be deleted.

String

Code Sample

DeleteGridsAndGraticules tool Example (Python Window)

Deletes grid and graticule layers from a feature dataset.

import arcpy
from arcpy import env
env.workspace = "C:/Python_Output"
arcpy.DeleteGridsAndGraticules_cartography("C:/Python_Output/grid_layers.gdb/QUAD_24K", 
"Plaza Washington (Quad_24K_NAD83)")
DeleteGridsAndGraticules tool Example (Stand-alone Python script)

Deletes grid and graticule layers from a feature dataset.

 # Name: DeleteGridsAndGraticules.py 
# Description: Delete grid(s) from a feature dataset. 
# Author: ESRI 

# Import system module 
import arcpy 

# Enabling logging of the results 
arcpy.logHistory = True
 
# Set the values of the tool's parameters 
input_grid_dataset = "C:/Python_Output/grid_layers.gdb/QUAD_24K" 
grid_name = ['Plaza Washington (Quad_24K_NAD83)','Swift Minnesota (Quad_24K_NAD83)'] 

# Process: Delete Grids and Graticules 
arcpy.DeleteGridsAndGraticules_cartography(input_grid_dataset, grid_name) 
print "Grids and Graticules features deletion successful"

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcView: No
ArcEditor: Yes
ArcInfo: Yes

11/11/2011