<?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 How do I add a TIN to ArcMap using Python? in 3D Questions</title>
    <link>https://community.esri.com/t5/3d-questions/how-do-i-add-a-tin-to-arcmap-using-python/m-p/201418#M1260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a number of TINs covering our county and I would like to do a hyperlink script for the index layer to add the appropriate TIN to the Table of Contents when a feature is clicked with the hyperlink tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm having no luck finding the correct Python code to make this happen: &amp;nbsp;Testing with variations of "add a [****]" code I get arcpy.mapping.Layer erroring with "invalid data source", arcpy.MakeFeatureLayer_management says "Dataset does not exist or is not supported", etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code where it errors on the last line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
tinpath = r"\\here\thar\be\TINs"
arcpy.env.workspace = tinpath
tin = arcpy.ListDatasets("tin*", "Tin")[0]
arcpy.MakeFeatureLayer_management(tin, "tin1")&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:01:01 GMT</pubDate>
    <dc:creator>KC</dc:creator>
    <dc:date>2021-12-11T10:01:01Z</dc:date>
    <item>
      <title>How do I add a TIN to ArcMap using Python?</title>
      <link>https://community.esri.com/t5/3d-questions/how-do-i-add-a-tin-to-arcmap-using-python/m-p/201418#M1260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a number of TINs covering our county and I would like to do a hyperlink script for the index layer to add the appropriate TIN to the Table of Contents when a feature is clicked with the hyperlink tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm having no luck finding the correct Python code to make this happen: &amp;nbsp;Testing with variations of "add a [****]" code I get arcpy.mapping.Layer erroring with "invalid data source", arcpy.MakeFeatureLayer_management says "Dataset does not exist or is not supported", etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code where it errors on the last line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
tinpath = r"\\here\thar\be\TINs"
arcpy.env.workspace = tinpath
tin = arcpy.ListDatasets("tin*", "Tin")[0]
arcpy.MakeFeatureLayer_management(tin, "tin1")&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-do-i-add-a-tin-to-arcmap-using-python/m-p/201418#M1260</guid>
      <dc:creator>KC</dc:creator>
      <dc:date>2021-12-11T10:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a TIN to ArcMap using Python?</title>
      <link>https://community.esri.com/t5/3d-questions/how-do-i-add-a-tin-to-arcmap-using-python/m-p/201419#M1261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;list datasets will just do that&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listdatasets.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listdatasets.htm"&gt;ListDatasets—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the arcpy.mapping module's functions are&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/alphabeticallistoffunctions.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/alphabeticallistoffunctions.htm"&gt;Alphabetical list of arcpy.mapping functions—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The closest seems to be reference to 'edges' in &amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listfeatureclasses.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listfeatureclasses.htm"&gt;ListFeatureClasses—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which seems to provide a disconnect between what you want to do and what you can... unless you have layer files (ie ... *.lyr )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will move this to &lt;A href="https://community.esri.com/community/gis/3d?sr=search&amp;amp;searchId=bc9bd0fe-7345-4abf-bde3-e35a74632ea1&amp;amp;searchIndex=2"&gt;https://community.esri.com/community/gis/3d?sr=search&amp;amp;searchId=bc9bd0fe-7345-4abf-bde3-e35a74632ea1&amp;amp;searchIndex=2&lt;/A&gt;‌ to see if anyone over there has a process to do what you want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 22:06:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/how-do-i-add-a-tin-to-arcmap-using-python/m-p/201419#M1261</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-01T22:06:05Z</dc:date>
    </item>
  </channel>
</rss>

