<?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: CreateTIN with arcpy using more input feautures in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/createtin-with-arcpy-using-more-input-feautures/m-p/817122#M2680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see about &lt;A href="https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting?sr=search&amp;amp;searchId=9aaf3fd8-05d9-4bb9-b3ee-4e83caf26f5e&amp;amp;searchIndex=3"&gt;/blogs/dan_patterson/2016/08/14/script-formatting?sr=search&amp;amp;searchId=9aaf3fd8-05d9-4bb9-b3ee-4e83caf26f5e&amp;amp;searchIndex=3&lt;/A&gt;‌ about posting code in GeoNet, for clarity's sake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried going to the geoprocessing results in ArcMap and copying the results as a Python Snippet?&amp;nbsp; The snippet should give you a better idea on how you need to format your Input Feature Class&amp;nbsp;parameter&amp;nbsp;for the tool in Python.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing based on the tool help it would need to be a list of lists, with comma separated values for each Input Feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[['IST_HQ100_Depth.shp'&amp;nbsp;&amp;nbsp; , 'Field4' , "Mass_Points" , None],['Model_Area.shp', None, 'Soft_Clip' , None]]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if you are working in Python, make sure you are setting your environmental settings so it knows where to look for your input features, or use fully qualified file paths to the files.&amp;nbsp; Also I never see where you define the variable TIN in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps some.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2017 16:04:07 GMT</pubDate>
    <dc:creator>IanMurray</dc:creator>
    <dc:date>2017-03-15T16:04:07Z</dc:date>
    <item>
      <title>CreateTIN with arcpy using more input feautures</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/createtin-with-arcpy-using-more-input-feautures/m-p/817121#M2679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I am writing a Python code and the function createTIN does not work if i use 2 input features but i need both of them.&lt;/P&gt;&lt;P&gt;This is the code (the workspace is defined before):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;area &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Model_Area.shp'&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# a polygon to clip the TIN&lt;/SPAN&gt;
data &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'IST_HQ100_Depth.shp'&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# the .shp with the height field i need&lt;/SPAN&gt;
dField &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Field4'&lt;/SPAN&gt;
TIN &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; output &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"tin"&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# the folder is specified above&lt;/SPAN&gt;

Input_Features &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{0} {1} Mass_Points &amp;lt;None&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;data&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dField&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
inArea &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{0} &amp;lt;None&amp;gt; Soft_Clip &amp;lt;None&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;area&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreateTin_3d&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;TIN&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; CoordSys&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;Input_Features&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inArea&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax in the DesktopHelp fore more inputs has squared brackets and comma like i did.&lt;/P&gt;&lt;P&gt;If i give only one input (which is the example in the DesktopHelp) it works, but the output is wrong.&lt;/P&gt;&lt;P&gt;With both inputs in the ArcMap GUI it works with no problem (picture) and result is correct.&lt;/P&gt;&lt;P&gt;I really need to code it because I will put data and dField in a for loop for many data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know what the mistake could be? Pleeease help me if you can &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I am using Python 2.7 and ArcMap 10.3, which should be compatible&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="340953" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/340953_createTin.JPG" style="width: 620px; height: 386px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:39:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/createtin-with-arcpy-using-more-input-feautures/m-p/817121#M2679</guid>
      <dc:creator>martinaraffellini</dc:creator>
      <dc:date>2021-12-12T09:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: CreateTIN with arcpy using more input feautures</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/createtin-with-arcpy-using-more-input-feautures/m-p/817122#M2680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see about &lt;A href="https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting?sr=search&amp;amp;searchId=9aaf3fd8-05d9-4bb9-b3ee-4e83caf26f5e&amp;amp;searchIndex=3"&gt;/blogs/dan_patterson/2016/08/14/script-formatting?sr=search&amp;amp;searchId=9aaf3fd8-05d9-4bb9-b3ee-4e83caf26f5e&amp;amp;searchIndex=3&lt;/A&gt;‌ about posting code in GeoNet, for clarity's sake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried going to the geoprocessing results in ArcMap and copying the results as a Python Snippet?&amp;nbsp; The snippet should give you a better idea on how you need to format your Input Feature Class&amp;nbsp;parameter&amp;nbsp;for the tool in Python.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing based on the tool help it would need to be a list of lists, with comma separated values for each Input Feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[['IST_HQ100_Depth.shp'&amp;nbsp;&amp;nbsp; , 'Field4' , "Mass_Points" , None],['Model_Area.shp', None, 'Soft_Clip' , None]]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if you are working in Python, make sure you are setting your environmental settings so it knows where to look for your input features, or use fully qualified file paths to the files.&amp;nbsp; Also I never see where you define the variable TIN in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps some.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 16:04:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/createtin-with-arcpy-using-more-input-feautures/m-p/817122#M2680</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2017-03-15T16:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: CreateTIN with arcpy using more input feautures</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/createtin-with-arcpy-using-more-input-feautures/m-p/817123#M2681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for advice! I am new to Python and the community...&lt;/P&gt;&lt;P&gt;I update my question according to this. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will try with the snippets , but i am sure i should not use commas there&lt;/P&gt;&lt;P&gt;because there are no commas in the desktopHelp example. The example has&lt;/P&gt;&lt;P&gt;unfortunately only one feature as input...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have more suggestion i am always happy to read &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;martina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2017-03-15 17:04 GMT+01:00 Ian Murray &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:geonet@esri.com"&gt;geonet@esri.com&lt;/A&gt;&lt;SPAN&gt;&amp;gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;&lt;SPAN&gt;GeoNet &amp;lt;&lt;/SPAN&gt;&lt;A class="" href="https://community.esri.com/?et=watches.email.thread"&gt;https://community.esri.com/?et=watches.email.thread&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Re: CreateTIN with arcpy using more input feautures&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Ian Murray&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-profile-small jiveTT-hover-user" data-containerid="-1" data-containertype="-1" data-objectid="42743" data-objecttype="3" href="https://community.esri.com/people/iamurray?et=watches.email.thread"&gt;https://community.esri.com/people/iamurray?et=watches.email.thread&lt;/A&gt;&lt;SPAN&gt;&amp;gt; in *ArcGIS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;API for Python* - View the full discussion&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-comment-small" href="https://community.esri.com/thread/191839-createtin-with-arcpy-using-more-input-feautures?commentID=673042&amp;amp;et=watches.email.thread#comment-673042"&gt;https://community.esri.com/message/673042-re-createtin-with-arcpy-using-more-input-feautures?commentID=673042&amp;amp;et=watches.email.thread#comment-673042&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 16:20:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/createtin-with-arcpy-using-more-input-feautures/m-p/817123#M2681</guid>
      <dc:creator>martinaraffellini</dc:creator>
      <dc:date>2017-03-15T16:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: CreateTIN with arcpy using more input feautures</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/createtin-with-arcpy-using-more-input-feautures/m-p/817124#M2682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's true in the example they just use a single string with space seperated values.&amp;nbsp; I recommended differently for multiple inputs due to the help for that input showing the parameters as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;in_features [[in_feature_class, height_field, SF_type, tag_value],...]&lt;BR /&gt;&lt;BR /&gt;However, seeing as the input for the parameter is a &lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/classes/valuetable.htm"&gt;Value Table&lt;/A&gt;, I believe you are right it needs to be a space delimited single string.&amp;nbsp; I'm finding the help for that parameter a little misleading and it probably should be updated to show multiple features better.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 16:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/createtin-with-arcpy-using-more-input-feautures/m-p/817124#M2682</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2017-03-15T16:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: CreateTIN with arcpy using more input feautures</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/createtin-with-arcpy-using-more-input-feautures/m-p/817125#M2683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, just found another thread with a similar question which might be of use to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/161119"&gt;https://community.esri.com/thread/161119&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 16:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/createtin-with-arcpy-using-more-input-feautures/m-p/817125#M2683</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2017-03-15T16:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: CreateTIN with arcpy using more input feautures</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/createtin-with-arcpy-using-more-input-feautures/m-p/817126#M2684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this works!! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 17:20:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/createtin-with-arcpy-using-more-input-feautures/m-p/817126#M2684</guid>
      <dc:creator>martinaraffellini</dc:creator>
      <dc:date>2017-03-15T17:20:40Z</dc:date>
    </item>
  </channel>
</rss>

