<?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: Iterate Create TIN in over multiple folders in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/iterate-create-tin-in-over-multiple-folders/m-p/811935#M1559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On thing I recommend right away is make Lake a precondition to Create TIN to insure the correct pathname string is used during iteration. Also in the second model make sure Path is a precondition to Create TIN for the same reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for your problem of packing model variables into a value table for the Create TIN tool, this is a real limitation of doing things in Model Builder, as you can't pack variables like %FIELDNAME% inside a value table parameter like most garden-variety tool parameters. The only workaround I know for this is to do embed arcpy.CreateTin_3D&amp;nbsp;within a Python function that creates the value table and runs Create Tin inside the Calculate Value tool, or write a little Python script tool and use the tool in your model.&amp;nbsp;(I hope this makes sense to you.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2018 02:10:03 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2018-10-18T02:10:03Z</dc:date>
    <item>
      <title>Iterate Create TIN in over multiple folders</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterate-create-tin-in-over-multiple-folders/m-p/811934#M1558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a long time ArcGIS user and occasional (very) Model Builder user. I've only reached to Model Builder when I need to iterate tasks over multiple datasets and usually after a bit of stumbling I manage to get something working. In this case I'm stumped though and I think I'm missing something fundamental.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have about 150 folders each containing identically named point and polygon shapefiles with identical field names respectively. I need to use these to construct individual TINs and rasters which will each be stored in their respective subfolders. The polygon should be treated as a Hard_Clip and the points as Mass_Points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As shown in the attached screenshot I'm using&amp;nbsp;Workspace Iterator to select the point and polygon shapefile within each folder then using these as inputs to the Create TIN tool. I cannot seem to wrap my head around how to get the Create TIN tool to use these as inputs where the field names defining heights are recognized. Do I need to set up the Create TIN tool as a submodel, passing the workspace (folder) name to it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for any assistance. I need to take a model builder course obviously.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trevor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit - I've added the full model working model I would like to run within each folder, this model works fine within a folder right now. I just can't figure out how to iterate it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 16:17:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterate-create-tin-in-over-multiple-folders/m-p/811934#M1558</guid>
      <dc:creator>TrevorMiddel</dc:creator>
      <dc:date>2018-10-17T16:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Create TIN in over multiple folders</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterate-create-tin-in-over-multiple-folders/m-p/811935#M1559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On thing I recommend right away is make Lake a precondition to Create TIN to insure the correct pathname string is used during iteration. Also in the second model make sure Path is a precondition to Create TIN for the same reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for your problem of packing model variables into a value table for the Create TIN tool, this is a real limitation of doing things in Model Builder, as you can't pack variables like %FIELDNAME% inside a value table parameter like most garden-variety tool parameters. The only workaround I know for this is to do embed arcpy.CreateTin_3D&amp;nbsp;within a Python function that creates the value table and runs Create Tin inside the Calculate Value tool, or write a little Python script tool and use the tool in your model.&amp;nbsp;(I hope this makes sense to you.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 02:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterate-create-tin-in-over-multiple-folders/m-p/811935#M1559</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2018-10-18T02:10:03Z</dc:date>
    </item>
  </channel>
</rss>

