<?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 Re: Add Topology via python to MXD in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/add-topology-via-python-to-mxd/m-p/675251#M52255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to several older threads, you cannot directly add topology layers to a map using Arcpy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/116873/is-there-a-a-way-to-add-a-topology-dataset-to-an-mxd-with-arcpy"&gt;https://gis.stackexchange.com/questions/116873/is-there-a-a-way-to-add-a-topology-dataset-to-an-mxd-with-arcpy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/93229"&gt;https://community.esri.com/thread/93229&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This begs the question though, clearly the geoprocessing operation can create a layer file&amp;nbsp;of the Geoprocessing&amp;nbsp;Result object of the geoprocessing operation, and that layer is clearly added to the map when you have the addOutputs to True in the environment variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if there is a way to turn on the addOutput to True after you add the rules, features and validation, then recall the output or the result object in a way it would add it to the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/bixb0012"&gt;bixb0012&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Apr 2017 14:46:14 GMT</pubDate>
    <dc:creator>IanMurray</dc:creator>
    <dc:date>2017-04-19T14:46:14Z</dc:date>
    <item>
      <title>Add Topology via python to MXD</title>
      <link>https://community.esri.com/t5/python-questions/add-topology-via-python-to-mxd/m-p/675250#M52254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a Python AddIn, that creates a topology, then adds a feature layer and rules to it. After I run the topology validation, I would like to add the topology to the mxd that is open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I set&amp;nbsp;arcpy.env.addOutputsToMap to True, it adds the topology but before I add the rules, &amp;nbsp;features and validation. Is there any way to add the topology once everything is done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:11:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-topology-via-python-to-mxd/m-p/675250#M52254</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2017-04-19T12:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add Topology via python to MXD</title>
      <link>https://community.esri.com/t5/python-questions/add-topology-via-python-to-mxd/m-p/675251#M52255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to several older threads, you cannot directly add topology layers to a map using Arcpy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/116873/is-there-a-a-way-to-add-a-topology-dataset-to-an-mxd-with-arcpy"&gt;https://gis.stackexchange.com/questions/116873/is-there-a-a-way-to-add-a-topology-dataset-to-an-mxd-with-arcpy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/93229"&gt;https://community.esri.com/thread/93229&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This begs the question though, clearly the geoprocessing operation can create a layer file&amp;nbsp;of the Geoprocessing&amp;nbsp;Result object of the geoprocessing operation, and that layer is clearly added to the map when you have the addOutputs to True in the environment variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if there is a way to turn on the addOutput to True after you add the rules, features and validation, then recall the output or the result object in a way it would add it to the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/bixb0012"&gt;bixb0012&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:46:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-topology-via-python-to-mxd/m-p/675251#M52255</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2017-04-19T14:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add Topology via python to MXD</title>
      <link>https://community.esri.com/t5/python-questions/add-topology-via-python-to-mxd/m-p/675252#M52256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to turn addOutput to True before Add rule and Validate, which gave me the desired result. If that wouldn't have worked, I would have used&amp;nbsp;ExportTopologyErrors_management and added the output feature layer to my mxd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:07:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-topology-via-python-to-mxd/m-p/675252#M52256</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2017-04-19T15:07:55Z</dc:date>
    </item>
  </channel>
</rss>

