Remove Rule From Topology (Data Management)

License Level:BasicStandardAdvanced

Summary

Removes a rule from a topology.

Usage

Syntax

RemoveRuleFromTopology_management (in_topology, in_rule)
ParameterExplanationData Type
in_topology

The topology from which to remove a rule. This is the full path to the topology layer on disk, NOT the topology layer name in map.

Topology Layer
in_rule

The topology rule to remove from the topology.

String

Code Sample

RemoveRuleFromTopology Python Window example

The following script demonstrates how to use the RemoveRuleFromTopology function in the Python Window.

import arcpy
from arcpy import env
arcpy.RemoveRuleFromTopology_management("C:/CityData.mdb/LegalFabric/topology", "Must Not Have Dangles (21)")
RemoveRuleFromTopology stand-alone script example

The following stand-alone script demonstrates how to use the RemoveRuleFromTopology function.

# Name: RemoveRuleFromTopology_Example.py
# Description: Removes a rule from a topology
# Author: ESRI

# Import system modules

import arcpy

topo = "C:/CityData.mdb/LegalFabric/topology"
rule = "Must Not Have Dangles (21)"
arcpy.RemoveRuleFromTopology_management(topo, rule)

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013