Drop Representation (Cartography)
Summary
Deletes a feature class representation from a geodatabase feature class.
Usage
-
Once a feature class representation is deleted from a feature class, all representation rules and feature overrides associated with that representation are deleted. No features from the source feature class are deleted.
-
A feature class representation cannot be deleted from a feature class during an editing session. Deleting a representation is a schema change and schema changes are prevented during an editing session.
Syntax
Parameter | Explanation | Data Type |
in_features |
The input feature layer containing representation(s). | Feature Layer |
representation |
The feature class representation to be deleted. | String |
Code Sample
The following Python window script demonstrates how to use the DropRepresentation tool in immediate mode.
import arcpy
from arcpy import env
env.workspace = "C:/data"
arcpy.DropRepresentation_cartography("footprints.lyr", "footprints_Rep")
This stand-alone script shows an example of using the DropRepresentation tool.
# Name: DropRepresentation_standalone_script.py
# Description: Deletes a feature class representation from a geodatabase feature class.
# Author: ESRI
# Import system modules
import arcpy
from arcpy import env
# Set environment settings
env.workspace = "C:/data"
# Set local variables
in_features = "footprints.lyr"
representation = "footprints_Rep"
# Execute Drop Representation
arcpy.DropRepresentation_cartography(in_features, representation)