Remove Override (Cartography)
Removes geometry and/or property representation overrides from features participating in a feature class representation.
Features will not be deleted, just representation overrides.
The Remove Option parameter specifies which type of representation override will be removed.
- Removing geometry overrides reassociates a feature with the geometry stored in its Shape field. The alternate representation geometry will be deleted. Geometry overrides are sometimes called shape overrides.
- Removing property overrides removes all feature-specific property overrides and reverts the feature back to following the native representation rule.
The input feature layer containing at least one representation.
The representation from which representation overrides will be removed.
Specifies which types of overrides will be removed.
The following Python window script demonstrates how to use the RemoveOverride tool in immediate mode.
import arcpy from arcpy import env env.workspace = "C:/data" arcpy.RemoveOverride_cartography("footprints.lyr", "footprints_Rep", "BOTH")
This stand-alone script shows an example of using the RemoveOverride tool.
# Name: RemoveOverride_standalone_script.py # Description: Removes geometry and/or property representation overrides from features participating in a feature class representation. # 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" remove_option = "BOTH" # Execute Remove Override arcpy.RemoveOverride_cartography(in_features, representation, remove_option)