<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Add topology rule exception via python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/add-topology-rule-exception-via-python/m-p/751882#M58088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a python script that adds a topology to a feature dataset (in FGDB), adds a feature class to the topology, then adds a gap rule and an overlap rule.&amp;nbsp; The script then validates the topology and exports the topology errors to feature classes.&amp;nbsp; I then export the resulting topology error feature classes to CSV files, using the ExpoertXYv_stats function, for use in later process.&amp;nbsp; I then delete the topology error feature classes exported from the validate topology step, and the topology itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that some of the polygons that are participating in the topology aren't completely bounded by other features, and as a result, are showing up as gap errors.&amp;nbsp; I understand that technically these are being correctly identified as gap errors.&amp;nbsp; However, I want to ignore these particular errors as they are acceptable.&amp;nbsp; Hence, I want to add an exception to the gap topology rule so they will not show up in my output files.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible to do in arcpy?&amp;nbsp; I have not seen any arcpy functions to do this, unless I am missing something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If its not possible to add a topology exception in python...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there some way to identify the particular validation errors in the output so I can skip them in post processing?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I can tell there are only the following attribute fields available in the output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;X,Y,OID,OriginObjectClassName,OriginObjectID,DestinationObjectClassName,DestinationObjectID,RuleType,RuleDescription,isException&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The coordinates in my CSV file looked like it might be the centroid, so I thought I might be able to use that to identify those particular gap errors.&amp;nbsp; However when using the 'Feature to Point' toolbox tool to find the centroid of the polygons and verify this, it appears the ExportXYv_stats function coordinates is not the centroid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 14:14:56 GMT</pubDate>
    <dc:creator>AveryPenniston</dc:creator>
    <dc:date>2013-01-15T14:14:56Z</dc:date>
    <item>
      <title>Add topology rule exception via python</title>
      <link>https://community.esri.com/t5/python-questions/add-topology-rule-exception-via-python/m-p/751882#M58088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a python script that adds a topology to a feature dataset (in FGDB), adds a feature class to the topology, then adds a gap rule and an overlap rule.&amp;nbsp; The script then validates the topology and exports the topology errors to feature classes.&amp;nbsp; I then export the resulting topology error feature classes to CSV files, using the ExpoertXYv_stats function, for use in later process.&amp;nbsp; I then delete the topology error feature classes exported from the validate topology step, and the topology itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that some of the polygons that are participating in the topology aren't completely bounded by other features, and as a result, are showing up as gap errors.&amp;nbsp; I understand that technically these are being correctly identified as gap errors.&amp;nbsp; However, I want to ignore these particular errors as they are acceptable.&amp;nbsp; Hence, I want to add an exception to the gap topology rule so they will not show up in my output files.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible to do in arcpy?&amp;nbsp; I have not seen any arcpy functions to do this, unless I am missing something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If its not possible to add a topology exception in python...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there some way to identify the particular validation errors in the output so I can skip them in post processing?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I can tell there are only the following attribute fields available in the output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;X,Y,OID,OriginObjectClassName,OriginObjectID,DestinationObjectClassName,DestinationObjectID,RuleType,RuleDescription,isException&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The coordinates in my CSV file looked like it might be the centroid, so I thought I might be able to use that to identify those particular gap errors.&amp;nbsp; However when using the 'Feature to Point' toolbox tool to find the centroid of the polygons and verify this, it appears the ExportXYv_stats function coordinates is not the centroid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 14:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-topology-rule-exception-via-python/m-p/751882#M58088</guid>
      <dc:creator>AveryPenniston</dc:creator>
      <dc:date>2013-01-15T14:14:56Z</dc:date>
    </item>
  </channel>
</rss>

