Label | Explanation | Data Type |
Input Topology | Topology Layer | |
Rule | The topology rule to remove from the topology. | String |
Derived Output
Label | Explanation | Data Type |
Updated Input Topology | The updated topology. | Topology Layer |
Available with Standard or Advanced license.
Removes a rule from a topology.
When running this tool using scripting, the feature class ObjectClassID involved in the topology rule to be removed must be specified in parentheses after the rule name. For example
Removing a rule will require the entire extent of the topology to be validated.
Label | Explanation | Data Type |
Input Topology | Topology Layer | |
Rule | The topology rule to remove from the topology. | String |
Label | Explanation | Data Type |
Updated Input Topology | The updated topology. | Topology Layer |
arcpy.management.RemoveRuleFromTopology(in_topology, in_rule)
Name | Explanation | Data Type |
in_topology | Topology Layer | |
in_rule | The topology rule to remove from the topology. | String |
Name | Explanation | Data Type |
out_topology | The updated topology. | Topology Layer |
The following script demonstrates how to use the RemoveRuleFromTopology function in the Python window.
import arcpy
arcpy.RemoveRuleFromTopology_management("C:/CityData.gdb/LegalFabric/topology", "Must Not Have Dangles (21)")
The following stand-alone script demonstrates how to use the RemoveRuleFromTopology function.
# Name: RemoveRuleFromTopology_Example.py
# Description: Removes a rule from a topology
# Import system modules
import arcpy
topo = "C:/CityData.mdb/LegalFabric/topology"
rule = "Must Not Have Dangles (21)"
arcpy.RemoveRuleFromTopology_management(topo, rule)