ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Remove Rule From Topology

Available with Standard or Advanced license.

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

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 theObjectClassID 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.

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

  • Legacy:
    Prior to ArcGIS 10.1 rules could not be removed from a versioned topology. In ArcGIS 10.1 you can remove rules from a versioned topology when the ArcSDE geodatabase is version 10.0 or higher. To upgrade your geodatabase to the latest version, use the Upgrade_Geodatabase tool.

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

Licensing information

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • Topology basics
  • Topology in ArcGIS
  • Designing a geodatabase topology

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal