Remove Rule From Topology (Data Management)

Available with Standard or Advanced license.

Summary

Removes a rule from a topology.

Usage

  • 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

    • Must Not Overlap (2) where "2" is the ObjectClassID of the feature class that participates in the Must Not Overlap rule that is to be removed from the topology.
    • Must Be Properly Inside (78-79) where "78" and "79" are the ObjectClassID of the feature classes that participate in the Must Be Properly Inside rule that is to be removed from the topology
    See the tool code samples for an example. If you are using the tool from the tool dialog box the list of rules is presented in a drop-down list.

    Tip:

    You can find the ObjectClassID value for a feature class by right-clicking the layer in the Contents pane, select Properties, and click the Source tab. On the Feature Class row, click the Object Class ID button (it looks like a spyglass), and the ObjectClassID is displayed.

  • Removing a rule will require the entire extent of the topology to be validated.

Parameters

LabelExplanationData Type
Input Topology

The topology from which to remove a rule.

Topology Layer
Rule

The topology rule to remove from the topology.

String

Derived Output

LabelExplanationData Type
Updated Input Topology

The updated topology.

Topology Layer

arcpy.management.RemoveRuleFromTopology(in_topology, in_rule)
NameExplanationData Type
in_topology

The topology from which to remove a rule.

Topology Layer
in_rule

The topology rule to remove from the topology.

String

Derived Output

NameExplanationData Type
out_topology

The updated topology.

Topology Layer

Code sample

RemoveRuleFromTopology example (Python window)

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)")
RemoveRuleFromTopology example 2 (stand-alone script)

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)

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics