<?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: Help Creating TIN with Python Script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/help-creating-tin-with-python-script/m-p/190916#M14649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I finally managed to figure out my multi day headache.&amp;nbsp; Its all due to typos on ESRI's website in their help section none the less.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In two different examples they use string values, not variables or boolean, but text words such as :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]"constrained_delaunay"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Delaunay"[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Data Type actually needs to be Boolean and therefor either a True or False.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Haskett&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2012 18:08:48 GMT</pubDate>
    <dc:creator>GeorgeHaskett</dc:creator>
    <dc:date>2012-12-05T18:08:48Z</dc:date>
    <item>
      <title>Help Creating TIN with Python Script</title>
      <link>https://community.esri.com/t5/python-questions/help-creating-tin-with-python-script/m-p/190914#M14647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For some reason when I cannot get the following script to work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import primary modules&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy, sys, os, traceback&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set Variables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inTinA_features = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;out_TinA = arcpy.GetParameterAsText(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spatial_ref = arcpy.GetParameterAsText(2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Create TIN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CheckOutExtension("3D")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateTin_3d(out_TinA, spatial_ref, "inTinA_features Elev_Obs masspoints &amp;lt;None&amp;gt;", "DELAUNAY")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CheckInExtension("3D") &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script was stripped down to the bare bones, but still is not functioning.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Python 2.7 with ArcGIS ArcInfo 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The error I get is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; File "C:\Users\George\Documents\ArcGIS\v2\ProGIS_Project\createTIN.py", line 11, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; arcpy.CreateTin_3d(out_TinA, spatial_ref, "inTinA_features Elev_Obs masspoints &amp;lt;None&amp;gt;", "DELAUNAY")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\ddd.py", line 1683, in CreateTin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000800: The value is not a member of &amp;lt;None&amp;gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (CreateTin).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (createtin).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Haskett&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 21:48:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-creating-tin-with-python-script/m-p/190914#M14647</guid>
      <dc:creator>GeorgeHaskett</dc:creator>
      <dc:date>2012-12-04T21:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help Creating TIN with Python Script</title>
      <link>https://community.esri.com/t5/python-questions/help-creating-tin-with-python-script/m-p/190915#M14648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Hello,&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;For some reason when I cannot get the following script to work:&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color:&amp;quot;#0000CD&amp;quot;;"&gt;# Import primary modules&lt;BR /&gt;import arcpy, sys, os, traceback&lt;BR /&gt;from arcpy import env&lt;BR /&gt;&lt;BR /&gt;# Set Variables&lt;BR /&gt;inTinA_features = arcpy.GetParameterAsText(0)&lt;BR /&gt;out_TinA = arcpy.GetParameterAsText(1)&lt;BR /&gt;spatial_ref = arcpy.GetParameterAsText(2)&lt;BR /&gt; &lt;BR /&gt;# Create TIN&lt;BR /&gt;arcpy.CheckOutExtension("3D")&lt;BR /&gt;arcpy.CreateTin_3d(out_TinA, spatial_ref, "inTinA_features Elev_Obs masspoints &amp;lt;None&amp;gt;", "DELAUNAY")&lt;BR /&gt;arcpy.CheckInExtension("3D")&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;The script was stripped down to the bare bones, but still is not functioning.&amp;nbsp; &lt;BR /&gt;I am using Python 2.7 with ArcGIS ArcInfo 10.1.&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;The error I get is as follows:&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Traceback (most recent call last):&lt;BR /&gt; File "C:\Users\George\Documents\ArcGIS\v2\ProGIS_Project\createTIN.py", line 11, in &amp;lt;module&amp;gt;&lt;BR /&gt; arcpy.CreateTin_3d(out_TinA, spatial_ref, "inTinA_features Elev_Obs masspoints &amp;lt;None&amp;gt;", "DELAUNAY")&lt;BR /&gt; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\ddd.py", line 1683, in CreateTin&lt;BR /&gt; raise e&lt;BR /&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000800: The value is not a member of &amp;lt;None&amp;gt;.&lt;BR /&gt;Failed to execute (CreateTin).&lt;BR /&gt;&lt;BR /&gt;Failed to execute (createtin).&lt;/SPAN&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Thanks in advance,&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Haskett&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the problem is in the input values : [ ...[in_feature_class, height_field, SF_type, tag_value],...] . Since the input feature class, height field, and other optional values should be inputted as one value within a quotation, try first to use the input feature class as hard coded like C:\testFeat.shp. Then if you have to use the input Feature class as variable, use a code somthing like this ( reference: ArcGIS 10.1 help section)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ddd.CreateTin(outTin, sr, "{0} Elev_Obs masspoints &amp;lt;None&amp;gt;", "Delaunay")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{0} - mean the first input parameter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 15:24:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-creating-tin-with-python-script/m-p/190915#M14648</guid>
      <dc:creator>DanielAbera</dc:creator>
      <dc:date>2012-12-05T15:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help Creating TIN with Python Script</title>
      <link>https://community.esri.com/t5/python-questions/help-creating-tin-with-python-script/m-p/190916#M14649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I finally managed to figure out my multi day headache.&amp;nbsp; Its all due to typos on ESRI's website in their help section none the less.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In two different examples they use string values, not variables or boolean, but text words such as :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]"constrained_delaunay"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Delaunay"[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Data Type actually needs to be Boolean and therefor either a True or False.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Haskett&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 18:08:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-creating-tin-with-python-script/m-p/190916#M14649</guid>
      <dc:creator>GeorgeHaskett</dc:creator>
      <dc:date>2012-12-05T18:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help Creating TIN with Python Script</title>
      <link>https://community.esri.com/t5/python-questions/help-creating-tin-with-python-script/m-p/190917#M14650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At least at 10.1SP1, this issue is resolved, and you can safely use "DELAUNAY" or "CONSTRAINED_DELAUNAY" as the keywords, and any other value will return an error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 16:20:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-creating-tin-with-python-script/m-p/190917#M14650</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2013-08-23T16:20:21Z</dc:date>
    </item>
  </channel>
</rss>

