<?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: Select Related Data in Model Builder in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/select-related-data-in-model-builder/m-p/1468260#M3991</link>
    <description>&lt;P&gt;Things may have changed in Pro since your post but use the 'Join Features' (GeoAnalytics Desktop Tool) and it has an option for one to many that I believe will get you what you're looking for.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2024 21:26:24 GMT</pubDate>
    <dc:creator>BrianCoward1</dc:creator>
    <dc:date>2024-05-14T21:26:24Z</dc:date>
    <item>
      <title>Select Related Data in Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/select-related-data-in-model-builder/m-p/732297#M1301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to automate a select by attributes and then select the related data and export that related data as it's own feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to input a feature class, iterate through that feature class to select certain features by a field name, then take the related data from that feature class, and export it to a new feature class. I know how to do this manually in ArcPro, but want to use model builder to iterate through the feature class, so I don't have to manually do this 375 times!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having trouble getting the related data part?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 17:10:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/select-related-data-in-model-builder/m-p/732297#M1301</guid>
      <dc:creator>GinaBrewer-Mills</dc:creator>
      <dc:date>2019-06-25T17:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select Related Data in Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/select-related-data-in-model-builder/m-p/732298#M1302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this has always been a weakness presumably due to some technical issue that you can't run a relate to pass the selection from one layer to another in modelbuilder. Happy to be proven wrong if this functionality really does exist? In ArcPro they have now added a tool that &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-relate.htm"&gt;Adds a Relate&lt;/A&gt;&amp;nbsp;but this is not the same as running a relate, so not sure why you would ever use this tool in modelbuilder as you can't use the result of it within modelbuilder...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in my eyes this leaves only one option, use a bit of python may be in the Calculate Value tool to read the selection and then build a SQL expression to select the rows in the "related" table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 15:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/select-related-data-in-model-builder/m-p/732298#M1302</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2019-06-28T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select Related Data in Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/select-related-data-in-model-builder/m-p/732299#M1303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree I do not believe relates are supported in geoprocessing. The best way to do one to many relates&amp;nbsp;is either to build a long query expression as Duncan suggests using arcpy, or, add a join from the 'many' table to the 'one' table and use a sql expression&amp;nbsp;use a query&amp;nbsp;find the records that match in an unambiguous many to one join. For example, run this select on manytable with the active join to onetable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;onetable.OBJECT IS NOT NULL and onetable.RECTYPE = 'BEST'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 20:45:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/select-related-data-in-model-builder/m-p/732299#M1303</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-07-05T20:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select Related Data in Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/select-related-data-in-model-builder/m-p/1468260#M3991</link>
      <description>&lt;P&gt;Things may have changed in Pro since your post but use the 'Join Features' (GeoAnalytics Desktop Tool) and it has an option for one to many that I believe will get you what you're looking for.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 21:26:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/select-related-data-in-model-builder/m-p/1468260#M3991</guid>
      <dc:creator>BrianCoward1</dc:creator>
      <dc:date>2024-05-14T21:26:24Z</dc:date>
    </item>
  </channel>
</rss>

